blob: 100745a8d2eb637468718bce74eb461f5f82bd8c [file] [log] [blame]
Natalie Chouinard6ee63302024-06-25 20:45:30 +00001RWByteAddressBuffer prevent_dce : register(u0);
2
Natalie Chouinarde9027182024-06-13 18:50:19 +00003uint2 reverseBits_e1f4c1() {
Ben Claytonee36e392022-07-26 14:27:25 +00004 uint2 arg_0 = (1u).xx;
Ben Claytonc0af5c52022-06-02 14:36:10 +00005 uint2 res = reversebits(arg_0);
Natalie Chouinarde9027182024-06-13 18:50:19 +00006 return res;
Ben Clayton37035222021-12-08 19:54:08 +00007}
8
Ben Clayton37035222021-12-08 19:54:08 +00009void fragment_main() {
Natalie Chouinarde9027182024-06-13 18:50:19 +000010 prevent_dce.Store2(0u, asuint(reverseBits_e1f4c1()));
Ben Clayton37035222021-12-08 19:54:08 +000011 return;
12}
13
14[numthreads(1, 1, 1)]
15void compute_main() {
Natalie Chouinarde9027182024-06-13 18:50:19 +000016 prevent_dce.Store2(0u, asuint(reverseBits_e1f4c1()));
Ben Clayton37035222021-12-08 19:54:08 +000017 return;
18}
Natalie Chouinarde9027182024-06-13 18:50:19 +000019
20struct VertexOutput {
21 float4 pos;
22 uint2 prevent_dce;
23};
24struct tint_symbol_1 {
25 nointerpolation uint2 prevent_dce : TEXCOORD0;
26 float4 pos : SV_Position;
27};
28
29VertexOutput vertex_main_inner() {
30 VertexOutput tint_symbol = (VertexOutput)0;
31 tint_symbol.pos = (0.0f).xxxx;
32 tint_symbol.prevent_dce = reverseBits_e1f4c1();
33 return tint_symbol;
34}
35
36tint_symbol_1 vertex_main() {
37 VertexOutput inner_result = vertex_main_inner();
38 tint_symbol_1 wrapper_result = (tint_symbol_1)0;
39 wrapper_result.pos = inner_result.pos;
40 wrapper_result.prevent_dce = inner_result.prevent_dce;
41 return wrapper_result;
42}