?/TD>
Microsoft DirectX 9.0

Constants


These are shader and effect constants.

Effect Parameters

#defineDescription
D3DX_PARAMETER_SHAREDThe value of a parameter will be shared by all effects in the same namespace. Changing the value in one effect will change it in all shared effects. See Sharing Parameters.
D3DX_PARAMETER_LITERALThis parameter is marked as a literal value. Literal parameters cannot change after compile, allowing the compiler to optimize their usage. Shared parameters cannot be marked as a literal. See Usages and Literals.
D3DX_PARAMETER_ANNOTATIONThis parameter is marked as an annotation. See Annotations.

D3DX_PARAMETER_SHARED cannot be combined with LITERAL or ANNOTATION.

Effect parameter constants are used by D3DXPARAMETER_DESC.

D3DXHANDLE

Effects use handles to reference techniques, passes, annotations, and parameters.

typedefLPCSTRD3DXHANDLE

For more information, see Handles.

Shader State

#defineDescription
D3DXFX_DONOTSAVESTATEDevice state is not saved when calling ID3DXEffect::Begin or restored when calling ID3DXEffect::End.
D3DXFX_DONOTSAVESHADERSTATEShader state is not saved when calling ID3DXEffect::Begin or restored when calling ID3DXEffect::End.


© 2002 Microsoft Corporation. All rights reserved.