blob: 5dbf2b651b5d853e1314ac1ac185dacfe2aae2ae [file] [log] [blame]
Antonio Maiorano014d6f72024-08-22 13:36:42 +00001SKIP: INVALID
dan sinclair69313792024-06-13 20:35:21 +00002
dan sinclair8f1d2762024-07-31 02:35:40 +00003struct VertexOutput {
4 float4 pos;
5 float16_t prevent_dce;
6};
7
8struct vertex_main_outputs {
9 nointerpolation float16_t VertexOutput_prevent_dce : TEXCOORD0;
10 float4 VertexOutput_pos : SV_Position;
11};
12
13
14RWByteAddressBuffer prevent_dce : register(u0);
15float16_t sin_66a59f() {
16 float16_t arg_0 = float16_t(1.5703125h);
17 float16_t res = sin(arg_0);
18 return res;
19}
20
21void fragment_main() {
22 prevent_dce.Store<float16_t>(0u, sin_66a59f());
23}
24
25[numthreads(1, 1, 1)]
26void compute_main() {
27 prevent_dce.Store<float16_t>(0u, sin_66a59f());
28}
29
30VertexOutput 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
38vertex_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
46FXC validation failure:
Antonio Maiorano4f97c0e2024-08-22 05:42:29 +000047<scrubbed_path>(3,3-11): error X3000: unrecognized identifier 'float16_t'
dan sinclair8f1d2762024-07-31 02:35:40 +000048
Antonio Maioranoaef59572024-08-23 21:30:37 +000049
50tint executable returned error: exit status 1