Skip to content

[SPIRV][HLSL] Incorrect binding attributes on resource arrays #160716

@s-perron

Description

@s-perron

See https://godbolt.org/z/eWWaoT9bq. Note that %21 (the variable named "b") has two binding attributes:

        OpDecorate %21 DescriptorSet 0
        OpDecorate %21 Binding 0
        OpDecorate %21 Binding 1

It should only have the binding 0.

RWStructuredBuffer<float> b[4];

[numthreads(1,1,1)]
void main() {
  b[0][0] = b[1][0];
}

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions