blob: 967eefd682dcedd49c42c37ce48107cb18e30080 [file] [log] [blame]
Ben Clayton448c01b2024-02-28 00:23:17 +00001enable chromium_internal_graphite;
2
Natalie Chouinard6ee63302024-06-25 20:45:30 +00003@group(0) @binding(0) var<storage, read_write> prevent_dce : vec4<f32>;
4
Ben Clayton448c01b2024-02-28 00:23:17 +00005@group(1) @binding(0) var arg_0 : texture_storage_2d<r8unorm, read_write>;
6
Natalie Chouinarde9027182024-06-13 18:50:19 +00007fn textureLoad_e4051a() -> vec4<f32> {
Ben Clayton448c01b2024-02-28 00:23:17 +00008 var arg_1 = vec2<u32>(1u);
9 var res : vec4<f32> = textureLoad(arg_0, arg_1);
Natalie Chouinarde9027182024-06-13 18:50:19 +000010 return res;
Ben Clayton448c01b2024-02-28 00:23:17 +000011}
12
Ben Clayton448c01b2024-02-28 00:23:17 +000013@fragment
14fn fragment_main() {
Natalie Chouinarde9027182024-06-13 18:50:19 +000015 prevent_dce = textureLoad_e4051a();
Ben Clayton448c01b2024-02-28 00:23:17 +000016}
17
18@compute @workgroup_size(1)
19fn compute_main() {
Natalie Chouinarde9027182024-06-13 18:50:19 +000020 prevent_dce = textureLoad_e4051a();
21}