blob: 92ed017f9c5442eb36ab2d8411fa5f05a23c5409 [file] [log] [blame]
Ben Clayton2e376a92022-10-26 18:47:02 +00001#include <metal_stdlib>
2
3using namespace metal;
4void textureStore_28a7ec(texture2d_array<int, access::write> tint_symbol_1) {
Ben Clayton4b606152022-11-04 17:06:03 +00005 uint2 arg_1 = uint2(1u);
Ben Clayton2e376a92022-10-26 18:47:02 +00006 int arg_2 = 1;
Ben Clayton4b606152022-11-04 17:06:03 +00007 int4 arg_3 = int4(1);
Ben Clayton2e376a92022-10-26 18:47:02 +00008 tint_symbol_1.write(arg_3, uint2(arg_1), arg_2);
9}
10
11struct tint_symbol {
12 float4 value [[position]];
13};
14
15float4 vertex_main_inner(texture2d_array<int, access::write> tint_symbol_2) {
16 textureStore_28a7ec(tint_symbol_2);
17 return float4(0.0f);
18}
19
20vertex tint_symbol vertex_main(texture2d_array<int, access::write> tint_symbol_3 [[texture(0)]]) {
21 float4 const inner_result = vertex_main_inner(tint_symbol_3);
22 tint_symbol wrapper_result = {};
23 wrapper_result.value = inner_result;
24 return wrapper_result;
25}
26
27fragment void fragment_main(texture2d_array<int, access::write> tint_symbol_4 [[texture(0)]]) {
28 textureStore_28a7ec(tint_symbol_4);
29 return;
30}
31
32kernel void compute_main(texture2d_array<int, access::write> tint_symbol_5 [[texture(0)]]) {
33 textureStore_28a7ec(tint_symbol_5);
34 return;
35}
36