Parameters
Microsoft DirectX 9.0 SDK Update (October 2004)

Parameters


Parameters are effect variables.

Syntax

usage  type  id  [: semantic]  [< annotation(s) >]  [= expression];

Parameters can be read from and written to by the application with ID3DXEffect or ID3DXEffectCompiler.

Parameters can be referenced in functions and in techniques (specifically, in the right side of state assignments).

Parameters can be initialized to any valid HLSL Shader Reference expression that reduces to a literal value.

Parameter values are not changed by the execution of state assignment or function calls.



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