Compile slang shader contains
[[vk::binding(1, 0)]] StructedBuffer<float4> SphereArray;
Use compiler.get_shader_reources() didn't see any storage_buffers.
Use spirv-cross.exe to reflect, didn't see any ssbos.
But use spirv-dis.exe see
OpDecorate %SphereArray Binding 1
OpDecorate %SphereArray DescriptorSet 0
which binds correctly.
RWStructedBuffer doesn't work either.
How can or where can i get the reflection rightly in code ?
Compile slang shader contains
[[vk::binding(1, 0)]] StructedBuffer<float4> SphereArray;Use
compiler.get_shader_reources()didn't see any storage_buffers.Use spirv-cross.exe to reflect, didn't see any ssbos.
But use spirv-dis.exe see
which binds correctly.
RWStructedBuffer doesn't work either.
How can or where can i get the reflection rightly in code ?