blob: 2e670da3359ad3ae49e031ef8b3286030e0da0ee [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_5841f8(tint_module_vars_struct tint_module_vars) {
8 tint_module_vars.arg_0.write(float4(1.0f), uint2(1u), 1u);
9}
James Pricef4f55342024-06-12 03:02:19 +000010fragment void fragment_main(texture2d_array<float, access::write> arg_0 [[texture(0)]]) {
11 tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0};
12 textureStore_5841f8(tint_module_vars);
13}
14kernel void compute_main(texture2d_array<float, access::write> arg_0 [[texture(0)]]) {
15 tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0};
16 textureStore_5841f8(tint_module_vars);
17}