mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 16:24:24 +00:00
17 lines
330 B
GLSL
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];
|
|
}
|