blob: 36d986942a3050c7981c78525157e9f4fd7e5f66 [file] [log] [blame]
Ben Clayton77a90cb2023-03-06 18:25:08 +00001RWByteAddressBuffer prevent_dce : register(u0, space2);
2
Ben Claytonb07a7ce2021-06-03 11:26:17 +00003void cosh_377652() {
dan sinclair02d4ea02022-11-10 15:52:41 +00004 float3 res = (1.0f).xxx;
Ben Clayton77a90cb2023-03-06 18:25:08 +00005 prevent_dce.Store3(0u, asuint(res));
Ben Claytonb07a7ce2021-06-03 11:26:17 +00006}
7
Ben Clayton5d2f34e2021-06-16 09:19:36 +00008struct tint_symbol {
9 float4 value : SV_Position;
10};
11
James Pricea5d73ce2021-08-04 22:15:28 +000012float4 vertex_main_inner() {
Ben Claytonb07a7ce2021-06-03 11:26:17 +000013 cosh_377652();
Ben Claytone9f8b092022-06-01 13:14:39 +000014 return (0.0f).xxxx;
James Pricea5d73ce2021-08-04 22:15:28 +000015}
16
17tint_symbol vertex_main() {
Antonio Maiorano144ebed2024-01-30 16:30:15 +000018 float4 inner_result = vertex_main_inner();
James Pricea5d73ce2021-08-04 22:15:28 +000019 tint_symbol wrapper_result = (tint_symbol)0;
20 wrapper_result.value = inner_result;
21 return wrapper_result;
Ben Claytonb07a7ce2021-06-03 11:26:17 +000022}
23
24void fragment_main() {
25 cosh_377652();
26 return;
27}
28
29[numthreads(1, 1, 1)]
30void compute_main() {
31 cosh_377652();
32 return;
33}