shader-slang / slang

Making it easier to work with shaders
http://shader-slang.com
Other
2.97k stars 210 forks source link

"main" entry point name not allowed on some backends #5542

Open skallweitNV opened 1 week ago

skallweitNV commented 1 week ago

Some backends (cpu, cuda, metal) fail to compile a shader that has an entry point named main.

csyonghe commented 1 week ago

We can throw a warning, and rename "main" to "main_" on these targets.