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