Files
prosperon/shaders/msl/blit.vert.msl
2025-12-22 16:21:21 -06:00

20 lines
366 B
Plaintext

#include <metal_stdlib>
using namespace metal;
struct VertexIn {
float2 position [[attribute(0)]];
float2 uv [[attribute(1)]];
};
struct VertexOut {
float4 position [[position]];
float2 uv;
};
vertex VertexOut vertex_main(VertexIn in [[stage_in]]) {
VertexOut out;
out.position = float4(in.position, 0.0, 1.0);
out.uv = in.uv;
return out;
}