Skip to content

Compiler cannot reflect storage_buffer #2590

@JINGCHYII

Description

@JINGCHYII

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther progress depends on answer from issue creator.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions