UnleashedRecomp/UnleashedRecomp/gpu/shader/hlsl/copy_vs.hlsl
squidbus fc228ac15a Add support for Metal on macOS.
Co-authored-by: Isaac Marovitz <isaacryu@icloud.com>
2025-12-11 15:59:17 -08:00

5 lines
260 B
HLSL

void shaderMain(in uint vertexId : SV_VertexID, out float4 position : SV_Position, out float2 texCoord : TEXCOORD)
{
texCoord = float2((vertexId << 1) & 2, vertexId & 2);
position = float4(texCoord * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0);
}