way to instantiate in vertex shader compiled in spirv from slang. #7661
-
Hello, I thought about switching to slang for the language capabilities and got some issues converting my shaders in wgsl to slang at runtime.
and if I try to get the SV_InstanceID in the input of my function I got a
I cannot find anything related to DrawParameters in the features to activate ( or is it named differently ? ) Thanks in advance for the possible help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
We need to mark DrawParameters as allowed - we do support BaseInstance and BaseVertex, just not DrawId. We should allow this and just error on only DrawID. |
Beta Was this translation helpful? Give feedback.
-
ok thanks, is it a flag in the code that I can hack waiting for a patch? |
Beta Was this translation helpful? Give feedback.
Just like in wgsl, you need to split your matrix into 4 vec4s. That should make things work.
As for SV_InstanceID, this is a mess of everyone trying to emulate everyone else. I'm going to file a bug against slang.