webgpu-samples icon indicating copy to clipboard operation
webgpu-samples copied to clipboard

Add readonly storage buffer example on render pipeline

Open ottovilleFin opened this issue 5 years ago • 2 comments

Currently no WGSL samples covers this GLSL use case in vertex shader:

layout(std430, set = 0, binding = 0) readonly buffer myBuffer {
    float numbers[];
} myBuffer;

ottovilleFin avatar Oct 29 '20 13:10 ottovilleFin

Details of how readonly is specified is still in progress for WGSL. See https://github.com/gpuweb/gpuweb/issues/1159. Once that's finalized, I'll be happy to add an example that uses readonly storage buffers in the vertex shader :)

austinEng avatar Oct 29 '20 16:10 austinEng

Hi, any updates on this?

caiiiycuk avatar Sep 20 '22 08:09 caiiiycuk