Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

HLSL back-end ignores stride on storage buffers #1504

@ElectronicRU

Description

@ElectronicRU

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.

Metadata

Metadata

Assignees

Labels

area: back-endOutputs of shader conversionkind: bugSomething isn't workinglang: HLSLHigh-Level Shading Language

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions