blob: 33013a839af3f08def8b7b70d36a33c5b1718538 [file] [log] [blame]
James Price05c839632023-08-11 13:55:52 +00001#include <metal_stdlib>
James Price807f3ef2023-08-11 00:45:54 +00002
James Price05c839632023-08-11 13:55:52 +00003using namespace metal;
4void textureStore_877c92(texture1d<float, access::read_write> tint_symbol_1) {
5 int arg_1 = 1;
6 float4 arg_2 = float4(1.0f);
7 tint_symbol_1.write(arg_2, uint(arg_1)); tint_symbol_1.fence();
James Price807f3ef2023-08-11 00:45:54 +00008}
9
James Price05c839632023-08-11 13:55:52 +000010struct tint_symbol {
11 float4 value [[position]];
12};
13
14float4 vertex_main_inner(texture1d<float, access::read_write> tint_symbol_2) {
15 textureStore_877c92(tint_symbol_2);
16 return float4(0.0f);
James Price807f3ef2023-08-11 00:45:54 +000017}
18
James Price05c839632023-08-11 13:55:52 +000019vertex tint_symbol vertex_main(texture1d<float, access::read_write> tint_symbol_3 [[texture(0)]]) {
20 float4 const inner_result = vertex_main_inner(tint_symbol_3);
21 tint_symbol wrapper_result = {};
22 wrapper_result.value = inner_result;
23 return wrapper_result;
James Price807f3ef2023-08-11 00:45:54 +000024}
25
James Price05c839632023-08-11 13:55:52 +000026fragment void fragment_main(texture1d<float, access::read_write> tint_symbol_4 [[texture(0)]]) {
27 textureStore_877c92(tint_symbol_4);
28 return;
James Price807f3ef2023-08-11 00:45:54 +000029}
30
James Price05c839632023-08-11 13:55:52 +000031kernel void compute_main(texture1d<float, access::read_write> tint_symbol_5 [[texture(0)]]) {
32 textureStore_877c92(tint_symbol_5);
33 return;
34}
James Price807f3ef2023-08-11 00:45:54 +000035