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