struct VS_IN { float4 pos : POSITION; float4 col : CUSTOM_MACRO; }; struct PS_IN { float4 pos : SV_POSITION; float4 col : CUSTOM_MACRO; }; float4x4 worldViewProj; PS_IN VS( VS_IN input ) { PS_IN output = (PS_IN)0; output.pos = mul(input.pos, worldViewProj); output.col = input.col; return output; } float4 PS( PS_IN input ) : SV_Target { return input.col; } technique10 { pass { SetVertexShader( CompileShader( vs_4_0, VS() ) ); SetGeometryShader( null ); SetPixelShader( CompileShader( ps_4_0, PS() ) ); } }