1 2 3 4 5 6 7 8 9 10
struct PS_INPUT { float4 pos : SV_POSITION; float3 color : COLOR0; }; float4 main(PS_INPUT input) : SV_Target { return float4(input.color, 1.0); }