wgpu/naga/tests/in/glsl/buffer.frag
2023-10-25 14:25:04 -04:00

17 lines
330 B
GLSL

#version 450
layout(set = 0, binding = 0) buffer testBufferBlock {
uint[] data;
} testBuffer;
layout(set = 0, binding = 2) readonly buffer testBufferReadOnlyBlock {
uint[] data;
} testBufferReadOnly;
void main() {
uint a = testBuffer.data[0];
testBuffer.data[1] = 2;
uint b = testBufferReadOnly.data[0];
}