blob: 1500d9b920b0a358e168877018a4782ffa815389 [file] [log] [blame]
Natalie Chouinard6ee63302024-06-25 20:45:30 +00001@group(0) @binding(0) var<storage, read_write> prevent_dce : vec4<f32>;
2
James Price88c231b2023-08-15 12:47:28 +00003@group(1) @binding(0) var arg_0 : texture_storage_3d<bgra8unorm, read>;
4
Natalie Chouinarde9027182024-06-13 18:50:19 +00005fn textureLoad_f8a2e8() -> vec4<f32> {
James Price88c231b2023-08-15 12:47:28 +00006 var res : vec4<f32> = textureLoad(arg_0, vec3<i32>(1i));
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_f8a2e8();
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_f8a2e8();
18}
19
20struct VertexOutput {
21 @builtin(position)
22 pos : vec4<f32>,
23 @location(0) @interpolate(flat)
24 prevent_dce : vec4<f32>,
25}
26
27@vertex
28fn vertex_main() -> VertexOutput {
29 var out : VertexOutput;
30 out.pos = vec4<f32>();
31 out.prevent_dce = textureLoad_f8a2e8();
32 return out;
James Price88c231b2023-08-15 12:47:28 +000033}