blob: a9a71608bf56b0941cd364711e0ef32d50f7cc07 [file] [log] [blame]
James Pricef6644012023-08-11 00:45:54 +00001@group(1) @binding(0) var arg_0 : texture_storage_1d<rg32sint, read_write>;
2
Natalie Chouinarde9027182024-06-13 18:50:19 +00003fn textureDimensions_740e7c() -> u32 {
James Pricef6644012023-08-11 00:45:54 +00004 var res : u32 = textureDimensions(arg_0);
Natalie Chouinarde9027182024-06-13 18:50:19 +00005 return res;
James Pricef6644012023-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 : u32;
James Pricef6644012023-08-11 00:45:54 +00009
10@fragment
11fn fragment_main() {
Natalie Chouinarde9027182024-06-13 18:50:19 +000012 prevent_dce = textureDimensions_740e7c();
James Pricef6644012023-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 = textureDimensions_740e7c();
18}
19
20struct VertexOutput {
21 @builtin(position)
22 pos : vec4<f32>,
23 @location(0) @interpolate(flat)
24 prevent_dce : u32,
25}
26
27@vertex
28fn vertex_main() -> VertexOutput {
29 var out : VertexOutput;
30 out.pos = vec4<f32>();
31 out.prevent_dce = textureDimensions_740e7c();
32 return out;
James Pricef6644012023-08-11 00:45:54 +000033}