1struct VS_IN 2{ 3 float4 pos : POSITION; 4 float4 col : CUSTOM_MACRO; 5}; 6 7struct PS_IN 8{ 9 float4 pos : SV_POSITION; 10 float4 col : CUSTOM_MACRO; 11}; 12 13float4x4 worldViewProj; 14 15PS_IN VS( VS_IN input ) 16{ 17 PS_IN output = (PS_IN)0; 18 19 output.pos = mul(input.pos, worldViewProj); 20 output.col = input.col; 21 22 return output; 23} 24 25float4 PS( PS_IN input ) : SV_Target 26{ 27 return input.col; 28} 29 30technique10 31{ 32 pass 33 { 34 SetVertexShader( CompileShader( vs_4_0, VS() ) ); 35 SetGeometryShader( null ); 36 SetPixelShader( CompileShader( ps_4_0, PS() ) ); 37 } 38} 39 40