blob: c7bb12d52afeb00ad2ff48343f279ecb641008ef [file] [log] [blame]
Natalie Chouinard6ee63302024-06-25 20:45:30 +00001@group(0) @binding(0) var<storage, read_write> prevent_dce : vec4<u32>;
2
James Price88c231b2023-08-15 12:47:28 +00003@group(1) @binding(0) var arg_0 : texture_storage_2d_array<rgba32uint, read>;
4
Natalie Chouinarde9027182024-06-13 18:50:19 +00005fn textureLoad_348827() -> vec4<u32> {
James Price88c231b2023-08-15 12:47:28 +00006 var res : vec4<u32> = textureLoad(arg_0, vec2<u32>(1u), 1u);
Natalie Chouinarde9027182024-06-13 18:50:19 +00007 return res;
James Price88c231b2023-08-15 12:47:28 +00008}
9
James Price88c231b2023-08-15 12:47:28 +000010@fragment
11fn fragment_main() {
Natalie Chouinarde9027182024-06-13 18:50:19 +000012 prevent_dce = textureLoad_348827();
James Price88c231b2023-08-15 12:47:28 +000013}
14
15@compute @workgroup_size(1)
16fn compute_main() {
Natalie Chouinarde9027182024-06-13 18:50:19 +000017 prevent_dce = textureLoad_348827();
18}
19
20struct VertexOutput {
21 @builtin(position)
22 pos : vec4<f32>,
23 @location(0) @interpolate(flat)
24 prevent_dce : vec4<u32>,
25}
26
27@vertex
28fn vertex_main() -> VertexOutput {
29 var out : VertexOutput;
30 out.pos = vec4<f32>();
31 out.prevent_dce = textureLoad_348827();
32 return out;
James Price88c231b2023-08-15 12:47:28 +000033}