Files
UnleashedRecomp-hedge-dev/UnleashedRecomp/gpu/shader/copy_vs.hlsl
2024-10-19 22:22:09 +03:00

6 lines
254 B
HLSL

void main(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);
}