struct Vertex { float4 pos : POSITION; float4 col : COLOR; }; struct VSOut { float4 pos : SV_POSITION; float4 col : COLOR; }; VSOut MainVS(Vertex v) { VSOut o; o.pos = v.pos; o.col = v.col; return o; } float4 MainPS(VSOut i) : SV_TARGET { return i.col; }