James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 1 | #include <metal_stdlib> |
James Price | d90c72b | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 2 | |
James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 3 | using namespace metal; |
| 4 | void textureLoad_6e903f(texture3d<int, access::read_write> tint_symbol_1, device int4* const tint_symbol_2) { |
| 5 | int3 arg_1 = int3(1); |
| 6 | int4 res = tint_symbol_1.read(uint3(arg_1)); |
| 7 | *(tint_symbol_2) = res; |
James Price | d90c72b | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 8 | } |
| 9 | |
James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 10 | struct tint_symbol { |
| 11 | float4 value [[position]]; |
| 12 | }; |
James Price | d90c72b | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 13 | |
James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 14 | float4 vertex_main_inner(texture3d<int, access::read_write> tint_symbol_3, device int4* const tint_symbol_4) { |
| 15 | textureLoad_6e903f(tint_symbol_3, tint_symbol_4); |
| 16 | return float4(0.0f); |
James Price | d90c72b | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 17 | } |
| 18 | |
James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 19 | vertex tint_symbol vertex_main(texture3d<int, access::read_write> tint_symbol_5 [[texture(0)]], device int4* tint_symbol_6 [[buffer(0)]]) { |
| 20 | float4 const inner_result = vertex_main_inner(tint_symbol_5, tint_symbol_6); |
| 21 | tint_symbol wrapper_result = {}; |
| 22 | wrapper_result.value = inner_result; |
| 23 | return wrapper_result; |
James Price | d90c72b | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 24 | } |
| 25 | |
James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 26 | fragment void fragment_main(texture3d<int, access::read_write> tint_symbol_7 [[texture(0)]], device int4* tint_symbol_8 [[buffer(0)]]) { |
| 27 | textureLoad_6e903f(tint_symbol_7, tint_symbol_8); |
| 28 | return; |
James Price | d90c72b | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 29 | } |
| 30 | |
James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 31 | kernel void compute_main(texture3d<int, access::read_write> tint_symbol_9 [[texture(0)]], device int4* tint_symbol_10 [[buffer(0)]]) { |
| 32 | textureLoad_6e903f(tint_symbol_9, tint_symbol_10); |
| 33 | return; |
| 34 | } |
James Price | d90c72b | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 35 | |