| SKIP: INVALID |
| |
| struct modf_result_vec2_f16 { |
| vector<float16_t, 2> fract; |
| vector<float16_t, 2> whole; |
| }; |
| |
| struct VertexOutput { |
| float4 pos; |
| }; |
| |
| struct vertex_main_outputs { |
| float4 VertexOutput_pos : SV_Position; |
| }; |
| |
| |
| void modf_a545b9() { |
| modf_result_vec2_f16 res = {(float16_t(-0.5h)).xx, (float16_t(-1.0h)).xx}; |
| } |
| |
| void fragment_main() { |
| modf_a545b9(); |
| } |
| |
| [numthreads(1, 1, 1)] |
| void compute_main() { |
| modf_a545b9(); |
| } |
| |
| VertexOutput vertex_main_inner() { |
| VertexOutput tint_symbol = (VertexOutput)0; |
| tint_symbol.pos = (0.0f).xxxx; |
| modf_a545b9(); |
| VertexOutput v = tint_symbol; |
| return v; |
| } |
| |
| vertex_main_outputs vertex_main() { |
| VertexOutput v_1 = vertex_main_inner(); |
| vertex_main_outputs v_2 = {v_1.pos}; |
| return v_2; |
| } |
| |
| FXC validation failure: |
| <scrubbed_path>(2,10-18): error X3000: syntax error: unexpected token 'float16_t' |
| |
| |
| tint executable returned error: exit status 1 |