blob: b732ba20aec88fd3c84f65045db7d2cc6a06b659 [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_3bbc2b(texture1d<float, access::read_write> tint_symbol_1, device float4* const tint_symbol_2) {
5 float4 res = tint_symbol_1.read(uint(1));
6 *(tint_symbol_2) = res;
James Priced90c72b2023-08-11 00:45:54 +00007}
8
James Price05c839632023-08-11 13:55:52 +00009struct tint_symbol {
10 float4 value [[position]];
11};
James Priced90c72b2023-08-11 00:45:54 +000012
James Price05c839632023-08-11 13:55:52 +000013float4 vertex_main_inner(texture1d<float, access::read_write> tint_symbol_3, device float4* const tint_symbol_4) {
14 textureLoad_3bbc2b(tint_symbol_3, tint_symbol_4);
15 return float4(0.0f);
James Priced90c72b2023-08-11 00:45:54 +000016}
17
James Price05c839632023-08-11 13:55:52 +000018vertex tint_symbol vertex_main(texture1d<float, access::read_write> tint_symbol_5 [[texture(0)]], device float4* tint_symbol_6 [[buffer(0)]]) {
19 float4 const inner_result = vertex_main_inner(tint_symbol_5, tint_symbol_6);
20 tint_symbol wrapper_result = {};
21 wrapper_result.value = inner_result;
22 return wrapper_result;
James Priced90c72b2023-08-11 00:45:54 +000023}
24
James Price05c839632023-08-11 13:55:52 +000025fragment void fragment_main(texture1d<float, access::read_write> tint_symbol_7 [[texture(0)]], device float4* tint_symbol_8 [[buffer(0)]]) {
26 textureLoad_3bbc2b(tint_symbol_7, tint_symbol_8);
27 return;
James Priced90c72b2023-08-11 00:45:54 +000028}
29
James Price05c839632023-08-11 13:55:52 +000030kernel void compute_main(texture1d<float, access::read_write> tint_symbol_9 [[texture(0)]], device float4* tint_symbol_10 [[buffer(0)]]) {
31 textureLoad_3bbc2b(tint_symbol_9, tint_symbol_10);
32 return;
33}
James Priced90c72b2023-08-11 00:45:54 +000034