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