HLSL back-end ignores stride on storage buffers #1504
Labels
area: back-end
Outputs of shader conversion
kind: bug
Something isn't working
lang: HLSL
High-Level Shading Language
Shader playground: https://shader-playground.timjones.io/4e4be36000db47ee5a8fadfe4e44701c
While debugging https://github.com/LPGhatguy/crevice/runs/4081541660 for LPGhatguy/crevice#27, I've faced the unfortunate reality that copying into/out of interface arrays ignores the array stride altogether. This means WGPU code on DX backend will be cross-non-portable, erroneously so probably, with Vulkan and GL backends.
Arrays of vec3 are not exactly rare, so I propose we fix this ASAP, this looks to me like a serious compatibility issue.
The text was updated successfully, but these errors were encountered: