![]() |
![]() |
![]() |
Toggles the literal status of a parameter. A literal parameter has a value that doesn't change during the lifetime of an effect.
Syntax
HRESULT SetLiteral(
D3DXHANDLE hParameter, BOOL Literal );
Parameters
- hParameter
- [in] Unique identifier to a parameter. See Handles.
- Literal
- [in] Set to True to make the parameter a literal, and False if the parameter can change value during the shader lifetime.
Return Value
If the method succeeds, the return value is D3D_OK.
If the method fails, the return value can be D3DERR_INVALIDCALL.
Remarks
This methods only changes whether the parameter is a literal or not. To change the value of a parameter, use a method like ID3DXEffectCompiler::SetBool or ID3DXEffectCompiler::SetValue.
See Also
Usages and Literals, ID3DXEffectCompiler::GetLiteral