Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 1 | RWByteAddressBuffer prevent_dce : register(u0, space2); |
| 2 | |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 3 | void pow_4a46c9() { |
Ben Clayton | ee36e39 | 2022-07-26 14:27:25 +0000 | [diff] [blame] | 4 | float3 arg_0 = (1.0f).xxx; |
| 5 | float3 arg_1 = (1.0f).xxx; |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 6 | float3 res = pow(arg_0, arg_1); |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 7 | prevent_dce.Store3(0u, asuint(res)); |
Ben Clayton | 3703522 | 2021-12-08 19:54:08 +0000 | [diff] [blame] | 8 | } |
| 9 | |
| 10 | struct tint_symbol { |
| 11 | float4 value : SV_Position; |
| 12 | }; |
| 13 | |
| 14 | float4 vertex_main_inner() { |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 15 | pow_4a46c9(); |
Ben Clayton | e9f8b09 | 2022-06-01 13:14:39 +0000 | [diff] [blame] | 16 | return (0.0f).xxxx; |
Ben Clayton | 3703522 | 2021-12-08 19:54:08 +0000 | [diff] [blame] | 17 | } |
| 18 | |
| 19 | tint_symbol vertex_main() { |
Antonio Maiorano | 144ebed | 2024-01-30 16:30:15 +0000 | [diff] [blame] | 20 | float4 inner_result = vertex_main_inner(); |
Ben Clayton | 3703522 | 2021-12-08 19:54:08 +0000 | [diff] [blame] | 21 | tint_symbol wrapper_result = (tint_symbol)0; |
| 22 | wrapper_result.value = inner_result; |
| 23 | return wrapper_result; |
| 24 | } |
| 25 | |
| 26 | void fragment_main() { |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 27 | pow_4a46c9(); |
Ben Clayton | 3703522 | 2021-12-08 19:54:08 +0000 | [diff] [blame] | 28 | return; |
| 29 | } |
| 30 | |
| 31 | [numthreads(1, 1, 1)] |
| 32 | void compute_main() { |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 33 | pow_4a46c9(); |
Ben Clayton | 3703522 | 2021-12-08 19:54:08 +0000 | [diff] [blame] | 34 | return; |
| 35 | } |