Constant Float Register
Microsoft DirectX 9.0 SDK Update (October 2004)

Constant Float Register


Pixel shader input register for a 4-D floating-point constant.

They can be set using def or IDirect3DDevice9::SetPixelShaderConstantF.

The behavior of shader constants has changed between Microsoft DirectX 8.0 and DirectX 9.0.

Examples

Here is an example declaring two floating-point constants within a shader.

def c40, 0.0f,0.0f,0.0f,0.0f;

These constants are loaded every time IDirect3DDevice9::SetPixelShader is called.

If you are setting constant values with the API, there is no shader declaration required.



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.