Files
wgpu/tests/out/operators.msl
T
Ashley b08dfe5146 [Metal] Impl Expression::Splat (#738)
* [Metal] Impl `Expression::Splat`

* Add changes to the snapshots

* Apply suggestions
2021-04-20 11:41:13 -04:00

13 lines
343 B
Plaintext

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