Skip to content

way to instantiate in vertex shader compiled in spirv from slang. #7661

Answered by cwfitzgerald
Mikael256 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
10 replies
@cwfitzgerald
Comment options

@Mikael256
Comment options

@Mikael256
Comment options

@cwfitzgerald
Comment options

Answer selected by Mikael256
@cwfitzgerald
Comment options

@cwfitzgerald
Comment options

@Mikael256
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants