Original Post
hi everybody..i am a beginner to HLSL and i met with a problem that the compiler says 'There was an error compiling expression'.
here is some of the code
i do not know what may cause this..and some HLSL code written before can work well...
my English is poor ,so if it is not described clearly enough, please point out...thanks.~
here is some of the code
float4 PassTest(float2 coord:TEXCOORD) : COLOR0
{
return float4(0, 0, 0, 0);
}
technique Main
{
pass P0
{
PixelShader = compile ps_2_0 PassTest(); //the error is in this line?
}
}
i do not know what may cause this..and some HLSL code written before can work well...
my English is poor ,so if it is not described clearly enough, please point out...thanks.~