You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am seeing the reappearance of the same issue described in the following issue which got fixed: #52, the binding is not added to the resources array in the program entry.
structBatchIndex {
index: u32,
}
@group(0) @binding(2) var<uniform> batchIndex: BatchIndex;
@group(0) @binding(3) var<storage, read> batchOffsets: array<u32>;
@vertexfnvertex_main(
vertex: VertexInput
) ->VertexOutput {
let batchOffset = batchOffsets[batchIndex.index]; // will NOT work // ...
}
Workaround but not ideal:
@vertexfnvertex_main(
vertex: VertexInput
) ->VertexOutput {
letindex= batchIndex;
let batchOffset = batchOffsets[index]; // will work // ...
}
The text was updated successfully, but these errors were encountered:
Sorry about that. Work deadlines are making me not test thoroughly. I don't know why I didn't add a unit test for that. I'll get it fixed up as soon as I get a chance.
I do have a unit test for that shader code to index an array with uniform. I modified it with this version to index it with a struct member, and it passes. I checked
Hi,
I am seeing the reappearance of the same issue described in the following issue which got fixed: #52, the binding is not added to the resources array in the program entry.
Workaround but not ideal:
The text was updated successfully, but these errors were encountered: