Files
tooll3--t3/Operators/Lib/Assets/shaders/dx11/draw-FullscreenTriangle-vs.hlsl
2026-07-13 13:13:17 +08:00

6 lines
141 B
HLSL

float4 main(uint id: SV_VertexID) : SV_POSITION
{
return float4(float2((id << 1) & 2, id & 2) * float2(2, -2) + float2(-1, 1), 0, 1);
}