mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-26 09:21:04 +01:00
18 lines
285 B
Plaintext
18 lines
285 B
Plaintext
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
|
|
metal::float4 splat(
|
|
) {
|
|
return (((float2(1.0) + float2(2.0)) - float2(3.0)) / float2(4.0)).xyxy + static_cast<float4>(int4(5) % int4(2));
|
|
}
|
|
|
|
int unary(
|
|
) {
|
|
if (!true) {
|
|
return 1;
|
|
} else {
|
|
return !1;
|
|
}
|
|
}
|