James Price | d10ba2f | 2024-09-03 20:04:22 +0000 | [diff] [blame] | 1 | #include <metal_stdlib> |
| 2 | using namespace metal; |
Natalie Chouinard | e31fa9d | 2024-08-14 20:52:07 +0000 | [diff] [blame] | 3 | |
James Price | d10ba2f | 2024-09-03 20:04:22 +0000 | [diff] [blame] | 4 | struct tint_module_vars_struct { |
| 5 | device packed_uint3* prevent_dce; |
| 6 | }; |
| 7 | |
| 8 | uint3 quadSwapY_06a67c() { |
| 9 | uint3 arg_0 = uint3(1u); |
| 10 | uint3 res = quad_shuffle_xor(arg_0, 2u); |
| 11 | return res; |
| 12 | } |
| 13 | |
| 14 | fragment void fragment_main(device packed_uint3* prevent_dce [[buffer(0)]]) { |
| 15 | tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.prevent_dce=prevent_dce}; |
| 16 | (*tint_module_vars.prevent_dce) = packed_uint3(quadSwapY_06a67c()); |
| 17 | } |
| 18 | |
| 19 | kernel void compute_main(device packed_uint3* prevent_dce [[buffer(0)]]) { |
| 20 | tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.prevent_dce=prevent_dce}; |
| 21 | (*tint_module_vars.prevent_dce) = packed_uint3(quadSwapY_06a67c()); |
| 22 | } |