| #include <metal_stdlib> | |
| using namespace metal; | |
| struct Uniforms { | |
| /* 0x0000 */ uint i; | |
| /* 0x0004 */ uint j; | |
| }; | |
| struct tint_module_vars_struct { | |
| const constant Uniforms* uniforms; | |
| thread float2x4* m1; | |
| }; | |
| kernel void tint_symbol(const constant Uniforms* uniforms [[buffer(0)]]) { | |
| thread float2x4 m1 = float2x4(0.0f); | |
| tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.uniforms=uniforms, .m1=(&m1)}; | |
| (*tint_module_vars.m1)[(*tint_module_vars.uniforms).i][0] = 1.0f; | |
| } |