Original Post
Well I am trying to do something like this:
I am compiling it using fxc.exe, I specify the main entry point as mainPS, but it shows the parameter as taking up a register rather than compiling it with the parameter I set. Is there a way to compile specify techniques one at a time, rather than specifying an entry point can I specify a technique to compile instead?
half4 mainPS( uniform const style ) : COLOR
{
if( style == 0){
//do one thing
}
else if( style == 1){
//do another
}
else if( style == 3){
//and another
}
}
Technique PS_Style0
{
Pass P0
{
PixelShader = compile ps_2_0 mainPS( 0 );
}
}
Technique PS_Style1
{
Pass P0
{
PixelShader = compile ps_2_0 mainPS( 1 );
}
}
Technique PS_Style2
{
Pass P0
{
PixelShader = compile ps_2_0 mainPS( 2 );
}
}
I am compiling it using fxc.exe, I specify the main entry point as mainPS, but it shows the parameter as taking up a register rather than compiling it with the parameter I set. Is there a way to compile specify techniques one at a time, rather than specifying an entry point can I specify a technique to compile instead?