blob: 1465455d9a9dbead133f1249478280a9ad698640 [file] [log] [blame]
James Price05c839632023-08-11 13:55:52 +00001#include <metal_stdlib>
James Priced90c72b2023-08-11 00:45:54 +00002
James Price05c839632023-08-11 13:55:52 +00003using namespace metal;
4void 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 Priced90c72b2023-08-11 00:45:54 +00008}
9
James Price05c839632023-08-11 13:55:52 +000010struct tint_symbol {
11 float4 value [[position]];
12};
James Priced90c72b2023-08-11 00:45:54 +000013
James Price05c839632023-08-11 13:55:52 +000014float4 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 Priced90c72b2023-08-11 00:45:54 +000017}
18
James Price05c839632023-08-11 13:55:52 +000019vertex 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 Priced90c72b2023-08-11 00:45:54 +000024}
25
James Price05c839632023-08-11 13:55:52 +000026fragment 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 Priced90c72b2023-08-11 00:45:54 +000029}
30
James Price05c839632023-08-11 13:55:52 +000031kernel 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 Priced90c72b2023-08-11 00:45:54 +000035