else - ps

Start of an else block.

Syntax

else

 

Remarks

Pixel shader versions 1_1 1_2 1_3 1_4 2_0 2_x 2_sw 3_0 3_sw
else x x x x

 

If the condition in the corresponding if statement is true, the code enclosed by the if statement and the matching else is run.

Pixel Shader Instructions

if bool - ps

endif - ps