Open
Description
Description
Running a compute shader with an input of an array of struct of 20 bytes will only see the first 20/32 entries.
Repro steps
- Clone https://github.com/froody/wgpu/tree/compute-bug
cd examples
cargo run hello_compute
Expected vs observed behavior
Observed:
result: 189
result with vertex 20: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 0, 0, 0, 0, 0, 0, 0, 0]
result with vertex 32: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
Expected:
result: 189
result with vertex 20: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
result with vertex 32: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
Extra materials
Screenshots to help explain your problem.
Validation logs can be attached in case there are warnings and errors.
Zip-compressed API traces and GPU captures can also land here.
Platform
MacOS 14.3 (23D56), MacBookPro18,2
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status