blob: 38108bbcba9f25f6a8ce8ec7e05cdf390d5c7351 [file] [log] [blame]
Antonio Maiorano014d6f72024-08-22 13:36:42 +00001SKIP: INVALID
Antonio Maioranobf8a2302022-12-16 18:37:19 +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 +00005float16_t ldexp_082c1f() {
Antonio Maioranobf8a2302022-12-16 18:37:19 +00006 float16_t arg_0 = float16_t(1.0h);
7 float16_t res = ldexp(arg_0, 1);
Antonio Maioranocf2f4d62024-08-22 05:37:05 +00008 return res;
Antonio Maioranobf8a2302022-12-16 18:37:19 +00009}
10
11void fragment_main() {
Antonio Maioranocf2f4d62024-08-22 05:37:05 +000012 prevent_dce.Store<float16_t>(0u, ldexp_082c1f());
Antonio Maioranobf8a2302022-12-16 18:37:19 +000013 return;
14}
15
16[numthreads(1, 1, 1)]
17void compute_main() {
Antonio Maioranocf2f4d62024-08-22 05:37:05 +000018 prevent_dce.Store<float16_t>(0u, ldexp_082c1f());
Antonio Maioranobf8a2302022-12-16 18:37:19 +000019 return;
20}
Antonio Maioranocf2f4d62024-08-22 05:37:05 +000021
22struct VertexOutput {
23 float4 pos;
24 float16_t prevent_dce;
25};
26struct tint_symbol_1 {
27 nointerpolation float16_t prevent_dce : TEXCOORD0;
28 float4 pos : SV_Position;
29};
30
31VertexOutput 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
38tint_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}
45FXC validation failure:
Antonio Maiorano4f97c0e2024-08-22 05:42:29 +000046<scrubbed_path>(3,1-9): error X3000: unrecognized identifier 'float16_t'
Antonio Maioranocf2f4d62024-08-22 05:37:05 +000047
Antonio Maioranoaef59572024-08-23 21:30:37 +000048
49tint executable returned error: exit status 1