mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-23 23:34:29 +00:00
12 lines
278 B
Plaintext
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)) };
|
|
}
|