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