Constants
Microsoft DirectX 9.0 SDK Update (October 2004)

Constants


These are shader and effect constants.

Effect Parameters

#defineDescription
D3DX_PARAMETER_ANNOTATIONThis parameter is marked as an annotation. See Add Information to Effect Parameters with Annotations.
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_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_SHARED cannot be combined with D3DX_PARAMETER_LITERAL or D3DX_PARAMETER_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_DONOTSAVESTATENo state is saved when calling ID3DXEffect::Begin or restored when calling ID3DXEffect::End.
D3DXFX_DONOTSAVESAMPLERSTATEA stateblock saves state when calling ID3DXEffect::Begin and restores state when calling ID3DXEffect::End.
D3DXFX_DONOTSAVESHADERSTATEA stateblock saves state (except shaders and shader constants) when calling ID3DXEffect::Begin and restores state when calling ID3DXEffect::End.

See State Blocks Save and Restore State.



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