wgpu/tests/out/operators.msl
2021-04-20 22:03:54 -04:00

12 lines
278 B
Plaintext

#include <metal_stdlib>
#include <simd/simd.h>
struct splatOutput {
metal::float4 member [[position]];
};
vertex splatOutput splat(
) {
return splatOutput { (((float2(1.0) + float2(2.0)) - float2(3.0)) / float2(4.0)).xyxy + static_cast<float4>(int4(5) % int4(2)) };
}