Ben Clayton | fe08ba4 | 2022-02-23 21:18:09 +0000 | [diff] [blame] | 1 | fn insertBits_3c7ba5() { |
Ben Clayton | ee36e39 | 2022-07-26 14:27:25 +0000 | [diff] [blame] | 2 | var res : vec2<u32> = insertBits(vec2<u32>(1u), vec2<u32>(1u), 1u, 1u); |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 3 | prevent_dce = res; |
Ben Clayton | fe08ba4 | 2022-02-23 21:18:09 +0000 | [diff] [blame] | 4 | } |
| 5 | |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 6 | @group(2) @binding(0) var<storage, read_write> prevent_dce : vec2<u32>; |
| 7 | |
dan sinclair | b29892b | 2022-06-07 13:55:34 +0000 | [diff] [blame] | 8 | @vertex |
Ben Clayton | fe08ba4 | 2022-02-23 21:18:09 +0000 | [diff] [blame] | 9 | fn vertex_main() -> @builtin(position) vec4<f32> { |
| 10 | insertBits_3c7ba5(); |
| 11 | return vec4<f32>(); |
| 12 | } |
| 13 | |
dan sinclair | b29892b | 2022-06-07 13:55:34 +0000 | [diff] [blame] | 14 | @fragment |
Ben Clayton | fe08ba4 | 2022-02-23 21:18:09 +0000 | [diff] [blame] | 15 | fn fragment_main() { |
| 16 | insertBits_3c7ba5(); |
| 17 | } |
| 18 | |
dan sinclair | b29892b | 2022-06-07 13:55:34 +0000 | [diff] [blame] | 19 | @compute @workgroup_size(1) |
Ben Clayton | fe08ba4 | 2022-02-23 21:18:09 +0000 | [diff] [blame] | 20 | fn compute_main() { |
| 21 | insertBits_3c7ba5(); |
| 22 | } |