blob: 26f68c850a86f696d4641e63c7fafd17aae55a69 [file] [log] [blame]
James Priced90c72b2023-08-11 00:45:54 +00001@group(1) @binding(0) var arg_0 : texture_storage_2d_array<rgba8snorm, read_write>;
2
Natalie Chouinarde9027182024-06-13 18:50:19 +00003fn textureLoad_cdbcf6() -> vec4<f32> {
James Priced90c72b2023-08-11 00:45:54 +00004 var res : vec4<f32> = textureLoad(arg_0, vec2<u32>(1u), 1u);
Natalie Chouinarde9027182024-06-13 18:50:19 +00005 return res;
James Priced90c72b2023-08-11 00:45:54 +00006}
7
Natalie Chouinarde9027182024-06-13 18:50:19 +00008@group(0) @binding(0) var<storage, read_write> prevent_dce : vec4<f32>;
James Priced90c72b2023-08-11 00:45:54 +00009
10@fragment
11fn fragment_main() {
Natalie Chouinarde9027182024-06-13 18:50:19 +000012 prevent_dce = textureLoad_cdbcf6();
James Priced90c72b2023-08-11 00:45:54 +000013}
14
15@compute @workgroup_size(1)
16fn compute_main() {
Natalie Chouinarde9027182024-06-13 18:50:19 +000017 prevent_dce = textureLoad_cdbcf6();
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_cdbcf6();
32 return out;
James Priced90c72b2023-08-11 00:45:54 +000033}