blob: f989433c034b30e934fbed88d37dca6b97dea750 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
device float3* s;
};
kernel void tint_symbol(device float3* s [[buffer(0)]]) {
tint_module_vars_struct const tint_module_vars = {.s=s};
float3 const v = float3(1.0f, 2.0f, 3.0f);
float const scalar = v[1u];
float2 const swizzle2 = v.xz;
float3 const swizzle3 = v.xzy;
float3 const v_1 = float3(scalar);
(*tint_module_vars.s) = ((v_1 + float3(swizzle2, 1.0f)) + swizzle3);
}