While looking at the direct3d11 tutorial sample code, I saw code that I could not understand in the shader code.
struct VS_INPUT
{
float4 Pos : POSITION;
float4 Color : COLOR;
};
struct PS_INPUT
{
float4 Pos : SV_POSITION;
float4 Color : COLOR;
};
VS_INPUT use POSITION and PS_INPUT use SV_POSITION.
What is the difference?
why can't I use POSITION PS_INPUT?