?/TD>
Microsoft DirectX 9.0

defb (Pixel Shader)


Defines a boolean constant value, which should be loaded any time a shader is set to a device.

Syntax

defb dest, booleanValue

where

Remarks

Pixel shader versions1_11_21_31_42_02_x2_sw3_03_sw
defbxxxx

The defb instruction defines a boolean shader constant whose value is loaded anytime a shader is set to a device. These are called immediate constants. Immediate constants take precedence over constants set by the application programming interface (API) method SetPixelShaderConstantB.

There are two ways to set a booleanconstant in a shader.

  1. Use defb to define the constant directly inside a shader.
  2. Use the API methods to set a constant.

Instruction Information

Minimum operating systemWindows 98

Related Topics



© 2002 Microsoft Corporation. All rights reserved.