Can you make slangc emit a #[shader_stage]
when compiling to glsl?
#4433
-
Hi, I want to evaluate what it's like using Slang in Godot. Godot by default uses GLSL for compute shaders, but it doesn't recognise the GLSL files as a valid shader without a corresponding Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
You can use the requirePrelude feature to do that. Check out https://shader-slang.com/slang/user-guide/a1-04-interop.html |
Beta Was this translation helpful? Give feedback.
Only the second attempt is supported. It seems the problem is that prelude isn't supported by the glsl backend, which should be easy to add.