shader-slang / slang

Making it easier to work with shaders
http://shader-slang.com
MIT License
2.18k stars 187 forks source link

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

Open skallweitNV opened 1 day ago

skallweitNV commented 1 day ago

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

csyonghe commented 1 day ago

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