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