Natalie Chouinard | 6ee6330 | 2024-06-25 20:45:30 +0000 | [diff] [blame] | 1 | RWByteAddressBuffer prevent_dce : register(u0); |
| 2 | |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 3 | uint2 reverseBits_e1f4c1() { |
Ben Clayton | ee36e39 | 2022-07-26 14:27:25 +0000 | [diff] [blame] | 4 | uint2 arg_0 = (1u).xx; |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 5 | uint2 res = reversebits(arg_0); |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 6 | return res; |
Ben Clayton | 3703522 | 2021-12-08 19:54:08 +0000 | [diff] [blame] | 7 | } |
| 8 | |
Ben Clayton | 3703522 | 2021-12-08 19:54:08 +0000 | [diff] [blame] | 9 | void fragment_main() { |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 10 | prevent_dce.Store2(0u, asuint(reverseBits_e1f4c1())); |
Ben Clayton | 3703522 | 2021-12-08 19:54:08 +0000 | [diff] [blame] | 11 | return; |
| 12 | } |
| 13 | |
| 14 | [numthreads(1, 1, 1)] |
| 15 | void compute_main() { |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 16 | prevent_dce.Store2(0u, asuint(reverseBits_e1f4c1())); |
Ben Clayton | 3703522 | 2021-12-08 19:54:08 +0000 | [diff] [blame] | 17 | return; |
| 18 | } |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 19 | |
| 20 | struct VertexOutput { |
| 21 | float4 pos; |
| 22 | uint2 prevent_dce; |
| 23 | }; |
| 24 | struct tint_symbol_1 { |
| 25 | nointerpolation uint2 prevent_dce : TEXCOORD0; |
| 26 | float4 pos : SV_Position; |
| 27 | }; |
| 28 | |
| 29 | VertexOutput 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 | |
| 36 | tint_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 | } |