Files
wgpu/tests/out/wgsl/buffer.frag.wgsl
T
Jim Blandy 7060246357 Give convert_glsl_folder's output more consistent names.
Don't replace dots with dashes in the output filenames for no reason.
Instead, give them names consistent with those generated by
`write_output_glsl`.
2023-09-25 07:59:41 -07:00

31 lines
517 B
WebGPU Shading Language

struct testBufferBlock {
data: array<u32>,
}
struct testBufferReadOnlyBlock {
data: array<u32>,
}
@group(0) @binding(0)
var<storage, read_write> testBuffer: testBufferBlock;
@group(0) @binding(2)
var<storage> testBufferReadOnly: testBufferReadOnlyBlock;
fn main_1() {
var a: u32;
var b: u32;
let _e9 = testBuffer.data[0];
a = _e9;
testBuffer.data[1] = u32(2);
let _e19 = testBufferReadOnly.data[0];
b = _e19;
return;
}
@fragment
fn main() {
main_1();
return;
}