1

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?

Ratisser
  • 11
  • 4
  • https://stackoverflow.com/questions/46527515/directx-11-pixel-shader-what-is-sv-position This might help – Jin Lee Jul 16 '19 at 01:42
  • 2
    Possible duplicate of [DirectX 11 Pixel Shader What Is SV\_POSITION?](https://stackoverflow.com/questions/46527515/directx-11-pixel-shader-what-is-sv-position) – Gnietschow Jul 18 '19 at 08:33

0 Answers0