Antonio Maiorano | 014d6f7 | 2024-08-22 13:36:42 +0000 | [diff] [blame] | 1 | SKIP: INVALID |
dan sinclair | 6931379 | 2024-06-13 20:35:21 +0000 | [diff] [blame] | 2 | |
dan sinclair | 8f1d276 | 2024-07-31 02:35:40 +0000 | [diff] [blame] | 3 | struct VertexOutput { |
| 4 | float4 pos; |
| 5 | float16_t prevent_dce; |
| 6 | }; |
| 7 | |
| 8 | struct vertex_main_outputs { |
| 9 | nointerpolation float16_t VertexOutput_prevent_dce : TEXCOORD0; |
| 10 | float4 VertexOutput_pos : SV_Position; |
| 11 | }; |
| 12 | |
| 13 | |
| 14 | RWByteAddressBuffer prevent_dce : register(u0); |
| 15 | float16_t sin_66a59f() { |
| 16 | float16_t arg_0 = float16_t(1.5703125h); |
| 17 | float16_t res = sin(arg_0); |
| 18 | return res; |
| 19 | } |
| 20 | |
| 21 | void fragment_main() { |
| 22 | prevent_dce.Store<float16_t>(0u, sin_66a59f()); |
| 23 | } |
| 24 | |
| 25 | [numthreads(1, 1, 1)] |
| 26 | void compute_main() { |
| 27 | prevent_dce.Store<float16_t>(0u, sin_66a59f()); |
| 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 = sin_66a59f(); |
| 34 | VertexOutput v = tint_symbol; |
| 35 | return v; |
| 36 | } |
| 37 | |
| 38 | vertex_main_outputs vertex_main() { |
| 39 | VertexOutput v_1 = vertex_main_inner(); |
| 40 | VertexOutput v_2 = v_1; |
| 41 | VertexOutput v_3 = v_1; |
| 42 | vertex_main_outputs v_4 = {v_3.prevent_dce, v_2.pos}; |
| 43 | return v_4; |
| 44 | } |
| 45 | |
| 46 | FXC validation failure: |
Antonio Maiorano | 4f97c0e | 2024-08-22 05:42:29 +0000 | [diff] [blame] | 47 | <scrubbed_path>(3,3-11): error X3000: unrecognized identifier 'float16_t' |
dan sinclair | 8f1d276 | 2024-07-31 02:35:40 +0000 | [diff] [blame] | 48 | |
Antonio Maiorano | aef5957 | 2024-08-23 21:30:37 +0000 | [diff] [blame] | 49 | |
| 50 | tint executable returned error: exit status 1 |