Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 1 | RWByteAddressBuffer prevent_dce : register(u0, space2); |
| 2 | |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 3 | void tan_539e54() { |
dan sinclair | b77332e | 2022-11-10 15:55:00 +0000 | [diff] [blame] | 4 | vector<float16_t, 4> res = (float16_t(1.556640625h)).xxxx; |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 5 | prevent_dce.Store<vector<float16_t, 4> >(0u, res); |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 6 | } |
| 7 | |
| 8 | struct tint_symbol { |
| 9 | float4 value : SV_Position; |
| 10 | }; |
| 11 | |
| 12 | float4 vertex_main_inner() { |
| 13 | tan_539e54(); |
| 14 | return (0.0f).xxxx; |
| 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(); |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 19 | tint_symbol wrapper_result = (tint_symbol)0; |
| 20 | wrapper_result.value = inner_result; |
| 21 | return wrapper_result; |
| 22 | } |
| 23 | |
| 24 | void fragment_main() { |
| 25 | tan_539e54(); |
| 26 | return; |
| 27 | } |
| 28 | |
| 29 | [numthreads(1, 1, 1)] |
| 30 | void compute_main() { |
| 31 | tan_539e54(); |
| 32 | return; |
| 33 | } |