blob: 42d86de40b6bb5fbf602f00669b358847e94dce6 [file] [log] [blame]
James Price88c231b2023-08-15 12:47:28 +00001@group(1) @binding(0) var arg_0 : texture_storage_2d_array<rg32sint, read>;
2
Natalie Chouinarde9027182024-06-13 18:50:19 +00003fn textureLoad_9cf7df() -> vec4<i32> {
James Price88c231b2023-08-15 12:47:28 +00004 var res : vec4<i32> = textureLoad(arg_0, vec2<i32>(1i), 1u);
Natalie Chouinarde9027182024-06-13 18:50:19 +00005 return res;
James Price88c231b2023-08-15 12:47:28 +00006}
7
Natalie Chouinarde9027182024-06-13 18:50:19 +00008@group(0) @binding(0) var<storage, read_write> prevent_dce : vec4<i32>;
James Price88c231b2023-08-15 12:47:28 +00009
10@fragment
11fn fragment_main() {
Natalie Chouinarde9027182024-06-13 18:50:19 +000012 prevent_dce = textureLoad_9cf7df();
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_9cf7df();
18}
19
20struct VertexOutput {
21 @builtin(position)
22 pos : vec4<f32>,
23 @location(0) @interpolate(flat)
24 prevent_dce : vec4<i32>,
25}
26
27@vertex
28fn vertex_main() -> VertexOutput {
29 var out : VertexOutput;
30 out.pos = vec4<f32>();
31 out.prevent_dce = textureLoad_9cf7df();
32 return out;
James Price88c231b2023-08-15 12:47:28 +000033}