Constant Boolean Register

This register is a collection of bits used in static flow control instructions (for example, if bool - ps - else - ps - endif - ps). There are 16 of them, therefore, a shader can have 16 independent branch conditions. They can be set using defi - ps or IDirect3DDevice9::SetPixelShaderConstantI.

The behavior of shader constants has changed between Direct3D 8 and Direct3D 9.

Pixel shader versions 1_1 1_2 1_3 1_4 2_0 2_sw 2_x 3_0 3_sw
Constant Boolean Register x x x