blob: 6af039fcb46f2ae3864c89eec7e36340037bc34c [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::write> arg_0;
5};
dan sinclairf1f381a2023-11-22 09:44:15 +00006
James Pricef4f55342024-06-12 03:02:19 +00007void textureStore_d55e65(tint_module_vars_struct tint_module_vars) {
8 uint2 arg_1 = uint2(1u);
9 int arg_2 = 1;
10 float4 arg_3 = float4(1.0f);
11 tint_module_vars.arg_0.write(arg_3, arg_1, arg_2);
12}
James Pricef4f55342024-06-12 03:02:19 +000013fragment void fragment_main(texture2d_array<float, access::write> arg_0 [[texture(0)]]) {
14 tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0};
15 textureStore_d55e65(tint_module_vars);
16}
17kernel void compute_main(texture2d_array<float, access::write> arg_0 [[texture(0)]]) {
18 tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0};
19 textureStore_d55e65(tint_module_vars);
20}