#include <metal_stdlib> | |
using namespace metal; | |
struct tint_module_vars_struct { | |
thread float* t; | |
}; | |
float4 m(tint_module_vars_struct tint_module_vars) { | |
(*tint_module_vars.t) = 1.0f; | |
return float4((*tint_module_vars.t)); | |
} | |
uint4 tint_v4f32_to_v4u32(float4 value) { | |
return select(uint4(4294967295u), select(uint4(0u), uint4(value), (value >= float4(0.0f))), (value <= float4(4294967040.0f))); | |
} | |
void f(tint_module_vars_struct tint_module_vars) { | |
uint4 v = tint_v4f32_to_v4u32(m(tint_module_vars)); | |
} |