blob: ef3bfc861b2f944f554e4864899bca21006b2c43 [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_c79451(texture1d<int, access::read_write> tint_symbol_1) {
5 uint arg_1 = 1u;
6 int4 arg_2 = int4(1);
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<int, access::read_write> tint_symbol_2) {
15 textureStore_c79451(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<int, 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<int, access::read_write> tint_symbol_4 [[texture(0)]]) {
27 textureStore_c79451(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<int, access::read_write> tint_symbol_5 [[texture(0)]]) {
32 textureStore_c79451(tint_symbol_5);
33 return;
34}
James Price807f3ef2023-08-11 00:45:54 +000035