Antonio Maiorano | 014d6f7 | 2024-08-22 13:36:42 +0000 | [diff] [blame] | 1 | SKIP: INVALID |
Antonio Maiorano | bf8a230 | 2022-12-16 18:37:19 +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 | float16_t ldexp_082c1f() { |
Antonio Maiorano | bf8a230 | 2022-12-16 18:37:19 +0000 | [diff] [blame] | 6 | float16_t arg_0 = float16_t(1.0h); |
| 7 | float16_t res = ldexp(arg_0, 1); |
Antonio Maiorano | cf2f4d6 | 2024-08-22 05:37:05 +0000 | [diff] [blame] | 8 | return res; |
Antonio Maiorano | bf8a230 | 2022-12-16 18:37:19 +0000 | [diff] [blame] | 9 | } |
| 10 | |
| 11 | void fragment_main() { |
Antonio Maiorano | cf2f4d6 | 2024-08-22 05:37:05 +0000 | [diff] [blame] | 12 | prevent_dce.Store<float16_t>(0u, ldexp_082c1f()); |
Antonio Maiorano | bf8a230 | 2022-12-16 18:37:19 +0000 | [diff] [blame] | 13 | return; |
| 14 | } |
| 15 | |
| 16 | [numthreads(1, 1, 1)] |
| 17 | void compute_main() { |
Antonio Maiorano | cf2f4d6 | 2024-08-22 05:37:05 +0000 | [diff] [blame] | 18 | prevent_dce.Store<float16_t>(0u, ldexp_082c1f()); |
Antonio Maiorano | bf8a230 | 2022-12-16 18:37:19 +0000 | [diff] [blame] | 19 | return; |
| 20 | } |
Antonio Maiorano | cf2f4d6 | 2024-08-22 05:37:05 +0000 | [diff] [blame] | 21 | |
| 22 | struct VertexOutput { |
| 23 | float4 pos; |
| 24 | float16_t prevent_dce; |
| 25 | }; |
| 26 | struct tint_symbol_1 { |
| 27 | nointerpolation float16_t prevent_dce : TEXCOORD0; |
| 28 | float4 pos : SV_Position; |
| 29 | }; |
| 30 | |
| 31 | VertexOutput vertex_main_inner() { |
| 32 | VertexOutput tint_symbol = (VertexOutput)0; |
| 33 | tint_symbol.pos = (0.0f).xxxx; |
| 34 | tint_symbol.prevent_dce = ldexp_082c1f(); |
| 35 | return tint_symbol; |
| 36 | } |
| 37 | |
| 38 | tint_symbol_1 vertex_main() { |
| 39 | VertexOutput inner_result = vertex_main_inner(); |
| 40 | tint_symbol_1 wrapper_result = (tint_symbol_1)0; |
| 41 | wrapper_result.pos = inner_result.pos; |
| 42 | wrapper_result.prevent_dce = inner_result.prevent_dce; |
| 43 | return wrapper_result; |
| 44 | } |
| 45 | FXC validation failure: |
Antonio Maiorano | 4f97c0e | 2024-08-22 05:42:29 +0000 | [diff] [blame] | 46 | <scrubbed_path>(3,1-9): error X3000: unrecognized identifier 'float16_t' |
Antonio Maiorano | cf2f4d6 | 2024-08-22 05:37:05 +0000 | [diff] [blame] | 47 | |
Antonio Maiorano | aef5957 | 2024-08-23 21:30:37 +0000 | [diff] [blame] | 48 | |
| 49 | tint executable returned error: exit status 1 |