![]() |
![]() |
![]() |
These are shader and effect constants.
#define | Description |
---|---|
D3DX_PARAMETER_ANNOTATION | This parameter is marked as an annotation. See Add Information to Effect Parameters with Annotations. |
D3DX_PARAMETER_LITERAL | This 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_SHARED | The 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.
Effects use handles to reference techniques, passes, annotations, and parameters.
typedef | LPCSTR | D3DXHANDLE |
For more information, see Handles.
#define | Description |
---|---|
D3DXFX_DONOTSAVESTATE | No state is saved when calling ID3DXEffect::Begin or restored when calling ID3DXEffect::End. |
D3DXFX_DONOTSAVESAMPLERSTATE | A stateblock saves state when calling ID3DXEffect::Begin and restores state when calling ID3DXEffect::End. |
D3DXFX_DONOTSAVESHADERSTATE | A stateblock saves state (except shaders and shader constants) when calling ID3DXEffect::Begin and restores state when calling ID3DXEffect::End. |