blob: 07b478169e52e35c481df96b617575b1234efe2f [file] [log] [blame]
Ben Clayton77a90cb2023-03-06 18:25:08 +00001RWByteAddressBuffer prevent_dce : register(u0, space2);
2
Ben Clayton81696932022-02-23 18:20:30 +00003void firstLeadingBit_a622c2() {
Antonio Maiorano1abe52d2022-10-31 20:34:36 +00004 int2 res = (0).xx;
Ben Clayton77a90cb2023-03-06 18:25:08 +00005 prevent_dce.Store2(0u, asuint(res));
Ben Clayton81696932022-02-23 18:20:30 +00006}
7
8struct tint_symbol {
9 float4 value : SV_Position;
10};
11
12float4 vertex_main_inner() {
13 firstLeadingBit_a622c2();
Ben Claytone9f8b092022-06-01 13:14:39 +000014 return (0.0f).xxxx;
Ben Clayton81696932022-02-23 18:20:30 +000015}
16
17tint_symbol vertex_main() {
Antonio Maiorano144ebed2024-01-30 16:30:15 +000018 float4 inner_result = vertex_main_inner();
Ben Clayton81696932022-02-23 18:20:30 +000019 tint_symbol wrapper_result = (tint_symbol)0;
20 wrapper_result.value = inner_result;
21 return wrapper_result;
22}
23
24void fragment_main() {
25 firstLeadingBit_a622c2();
26 return;
27}
28
29[numthreads(1, 1, 1)]
30void compute_main() {
31 firstLeadingBit_a622c2();
32 return;
33}