blob: 6cf19cf1ca707370099b634cee68868a495c8231 [file] [log] [blame]
dan sinclair999d93a2024-08-15 20:42:57 +00001SKIP: INVALID
dan sinclair69313792024-06-13 20:35:21 +00002
dan sinclair8f1d2762024-07-31 02:35:40 +00003struct VertexOutput {
4 float4 pos;
5 vector<float16_t, 4> prevent_dce;
6};
7
8struct vertex_main_outputs {
9 nointerpolation vector<float16_t, 4> VertexOutput_prevent_dce : TEXCOORD0;
10 float4 VertexOutput_pos : SV_Position;
11};
12
13
14RWByteAddressBuffer prevent_dce : register(u0);
15vector<float16_t, 4> cosh_3b7bbf() {
16 vector<float16_t, 4> res = (float16_t(1.0h)).xxxx;
17 return res;
18}
19
20void fragment_main() {
21 prevent_dce.Store<vector<float16_t, 4> >(0u, cosh_3b7bbf());
22}
23
24[numthreads(1, 1, 1)]
25void compute_main() {
26 prevent_dce.Store<vector<float16_t, 4> >(0u, cosh_3b7bbf());
27}
28
29VertexOutput vertex_main_inner() {
30 VertexOutput tint_symbol = (VertexOutput)0;
31 tint_symbol.pos = (0.0f).xxxx;
32 tint_symbol.prevent_dce = cosh_3b7bbf();
33 VertexOutput v = tint_symbol;
34 return v;
35}
36
37vertex_main_outputs vertex_main() {
38 VertexOutput v_1 = vertex_main_inner();
39 VertexOutput v_2 = v_1;
40 VertexOutput v_3 = v_1;
41 vertex_main_outputs v_4 = {v_3.prevent_dce, v_2.pos};
42 return v_4;
43}
44
45FXC validation failure:
Antonio Maiorano4f97c0e2024-08-22 05:42:29 +000046<scrubbed_path>(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
dan sinclair8f1d2762024-07-31 02:35:40 +000047
Antonio Maioranoaef59572024-08-23 21:30:37 +000048
49tint executable returned error: exit status 1