wgpu/tests/out/operators.msl

18 lines
327 B
Plaintext
Raw Normal View History

#include <metal_stdlib>
#include <simd/simd.h>
2021-04-27 05:10:02 +00:00
metal::float4 splat(
) {
2021-05-09 02:07:13 +00:00
return (((metal::float2(1.0) + metal::float2(2.0)) - metal::float2(3.0)) / metal::float2(4.0)).xyxy + static_cast<float4>(metal::int4(5) % metal::int4(2));
2021-04-27 05:10:02 +00:00
}
int unary(
) {
if (!true) {
return 1;
} else {
return !1;
}
}