mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
18 lines
327 B
Plaintext
18 lines
327 B
Plaintext
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
|
|
metal::float4 splat(
|
|
) {
|
|
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));
|
|
}
|
|
|
|
int unary(
|
|
) {
|
|
if (!true) {
|
|
return 1;
|
|
} else {
|
|
return !1;
|
|
}
|
|
}
|