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