Ben Clayton | 448c01b | 2024-02-28 00:23:17 +0000 | [diff] [blame] | 1 | enable chromium_internal_graphite; |
| 2 | |
Natalie Chouinard | 6ee6330 | 2024-06-25 20:45:30 +0000 | [diff] [blame] | 3 | @group(0) @binding(0) var<storage, read_write> prevent_dce : vec4<f32>; |
| 4 | |
Ben Clayton | 448c01b | 2024-02-28 00:23:17 +0000 | [diff] [blame] | 5 | @group(1) @binding(0) var arg_0 : texture_storage_2d<r8unorm, read_write>; |
| 6 | |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 7 | fn textureLoad_e4051a() -> vec4<f32> { |
Ben Clayton | 448c01b | 2024-02-28 00:23:17 +0000 | [diff] [blame] | 8 | var arg_1 = vec2<u32>(1u); |
| 9 | var res : vec4<f32> = textureLoad(arg_0, arg_1); |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 10 | return res; |
Ben Clayton | 448c01b | 2024-02-28 00:23:17 +0000 | [diff] [blame] | 11 | } |
| 12 | |
Ben Clayton | 448c01b | 2024-02-28 00:23:17 +0000 | [diff] [blame] | 13 | @fragment |
| 14 | fn fragment_main() { |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 15 | prevent_dce = textureLoad_e4051a(); |
Ben Clayton | 448c01b | 2024-02-28 00:23:17 +0000 | [diff] [blame] | 16 | } |
| 17 | |
| 18 | @compute @workgroup_size(1) |
| 19 | fn compute_main() { |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 20 | prevent_dce = textureLoad_e4051a(); |
| 21 | } |