blob: c2fd64f33316d21e3c451835fe900f17a9ae83ba [file] [log] [blame]
Antonio Maiorano014d6f72024-08-22 13:36:42 +00001SKIP: INVALID
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +00002
Antonio Maioranocf2f4d62024-08-22 05:37:05 +00003RWByteAddressBuffer prevent_dce : register(u0);
Ben Clayton77a90cb2023-03-06 18:25:08 +00004
Antonio Maioranocf2f4d62024-08-22 05:37:05 +00005vector<float16_t, 4> atan2_d983ab() {
Ben Claytonb990d392023-03-02 09:25:40 +00006 vector<float16_t, 4> res = (float16_t(0.78515625h)).xxxx;
Antonio Maioranocf2f4d62024-08-22 05:37:05 +00007 return res;
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +00008}
9
10void fragment_main() {
Antonio Maioranocf2f4d62024-08-22 05:37:05 +000011 prevent_dce.Store<vector<float16_t, 4> >(0u, atan2_d983ab());
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000012 return;
13}
14
15[numthreads(1, 1, 1)]
16void compute_main() {
Antonio Maioranocf2f4d62024-08-22 05:37:05 +000017 prevent_dce.Store<vector<float16_t, 4> >(0u, atan2_d983ab());
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000018 return;
19}
Antonio Maioranocf2f4d62024-08-22 05:37:05 +000020
21struct VertexOutput {
22 float4 pos;
23 vector<float16_t, 4> prevent_dce;
24};
25struct tint_symbol_1 {
26 nointerpolation vector<float16_t, 4> prevent_dce : TEXCOORD0;
27 float4 pos : SV_Position;
28};
29
30VertexOutput 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
37tint_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}
44FXC validation failure:
Antonio Maiorano4f97c0e2024-08-22 05:42:29 +000045<scrubbed_path>(3,8-16): error X3000: syntax error: unexpected token 'float16_t'
Antonio Maioranocf2f4d62024-08-22 05:37:05 +000046
Antonio Maioranoaef59572024-08-23 21:30:37 +000047
48tint executable returned error: exit status 1