blob: a46472c4ea1150795eee7d843c2d38fd1d8ba66b [file] [log] [blame]
James Pricef4f55342024-06-12 03:02:19 +00001#include <metal_stdlib>
2using namespace metal;
3struct tint_module_vars_struct {
4 texture2d_array<float, access::read_write> arg_0;
5};
6struct vertex_main_outputs {
7 float4 tint_symbol [[position]];
8};
dan sinclairf1f381a2023-11-22 09:44:15 +00009
James Pricef4f55342024-06-12 03:02:19 +000010void textureStore_4c76b7(tint_module_vars_struct tint_module_vars) {
11 uint2 arg_1 = uint2(1u);
12 int arg_2 = 1;
13 float4 arg_3 = float4(1.0f);
14 tint_module_vars.arg_0.write(arg_3, arg_1, arg_2);
15 tint_module_vars.arg_0.fence();
dan sinclairf1f381a2023-11-22 09:44:15 +000016}
James Pricef4f55342024-06-12 03:02:19 +000017float4 vertex_main_inner(tint_module_vars_struct tint_module_vars) {
18 textureStore_4c76b7(tint_module_vars);
19 return float4(0.0f);
dan sinclairf1f381a2023-11-22 09:44:15 +000020}
James Pricef4f55342024-06-12 03:02:19 +000021fragment void fragment_main(texture2d_array<float, access::read_write> arg_0 [[texture(0)]]) {
22 tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0};
23 textureStore_4c76b7(tint_module_vars);
dan sinclairf1f381a2023-11-22 09:44:15 +000024}
James Pricef4f55342024-06-12 03:02:19 +000025kernel void compute_main(texture2d_array<float, access::read_write> arg_0 [[texture(0)]]) {
26 tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0};
27 textureStore_4c76b7(tint_module_vars);
dan sinclairf1f381a2023-11-22 09:44:15 +000028}
James Pricef4f55342024-06-12 03:02:19 +000029vertex vertex_main_outputs vertex_main(texture2d_array<float, access::read_write> arg_0 [[texture(0)]]) {
30 tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0};
31 return vertex_main_outputs{.tint_symbol=vertex_main_inner(tint_module_vars)};
dan sinclairf1f381a2023-11-22 09:44:15 +000032}