Antonio Maiorano | 014d6f7 | 2024-08-22 13:36:42 +0000 | [diff] [blame] | 1 | SKIP: INVALID |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 2 | |
Antonio Maiorano | cf2f4d6 | 2024-08-22 05:37:05 +0000 | [diff] [blame] | 3 | RWByteAddressBuffer prevent_dce : register(u0); |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 4 | |
Antonio Maiorano | cf2f4d6 | 2024-08-22 05:37:05 +0000 | [diff] [blame] | 5 | vector<float16_t, 4> atan2_d983ab() { |
Ben Clayton | b990d39 | 2023-03-02 09:25:40 +0000 | [diff] [blame] | 6 | vector<float16_t, 4> res = (float16_t(0.78515625h)).xxxx; |
Antonio Maiorano | cf2f4d6 | 2024-08-22 05:37:05 +0000 | [diff] [blame] | 7 | return res; |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 8 | } |
| 9 | |
| 10 | void fragment_main() { |
Antonio Maiorano | cf2f4d6 | 2024-08-22 05:37:05 +0000 | [diff] [blame] | 11 | prevent_dce.Store<vector<float16_t, 4> >(0u, atan2_d983ab()); |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 12 | return; |
| 13 | } |
| 14 | |
| 15 | [numthreads(1, 1, 1)] |
| 16 | void compute_main() { |
Antonio Maiorano | cf2f4d6 | 2024-08-22 05:37:05 +0000 | [diff] [blame] | 17 | prevent_dce.Store<vector<float16_t, 4> >(0u, atan2_d983ab()); |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 18 | return; |
| 19 | } |
Antonio Maiorano | cf2f4d6 | 2024-08-22 05:37:05 +0000 | [diff] [blame] | 20 | |
| 21 | struct VertexOutput { |
| 22 | float4 pos; |
| 23 | vector<float16_t, 4> prevent_dce; |
| 24 | }; |
| 25 | struct tint_symbol_1 { |
| 26 | nointerpolation vector<float16_t, 4> prevent_dce : TEXCOORD0; |
| 27 | float4 pos : SV_Position; |
| 28 | }; |
| 29 | |
| 30 | VertexOutput vertex_main_inner() { |
| 31 | VertexOutput tint_symbol = (VertexOutput)0; |
| 32 | tint_symbol.pos = (0.0f).xxxx; |
| 33 | tint_symbol.prevent_dce = atan2_d983ab(); |
| 34 | return tint_symbol; |
| 35 | } |
| 36 | |
| 37 | tint_symbol_1 vertex_main() { |
| 38 | VertexOutput inner_result = vertex_main_inner(); |
| 39 | tint_symbol_1 wrapper_result = (tint_symbol_1)0; |
| 40 | wrapper_result.pos = inner_result.pos; |
| 41 | wrapper_result.prevent_dce = inner_result.prevent_dce; |
| 42 | return wrapper_result; |
| 43 | } |
| 44 | FXC validation failure: |
Antonio Maiorano | 4f97c0e | 2024-08-22 05:42:29 +0000 | [diff] [blame] | 45 | <scrubbed_path>(3,8-16): error X3000: syntax error: unexpected token 'float16_t' |
Antonio Maiorano | cf2f4d6 | 2024-08-22 05:37:05 +0000 | [diff] [blame] | 46 | |
Antonio Maiorano | aef5957 | 2024-08-23 21:30:37 +0000 | [diff] [blame] | 47 | |
| 48 | tint executable returned error: exit status 1 |