EffectCompiler.SetLiteral Method |
Language: |
Toggles the literal status of a parameter.
Visual Basic Public Sub SetLiteral( _
ByVal parameter As EffectHandle, _
ByVal value As Boolean _
)C# public void SetLiteral(
EffectHandle parameter,
bool value
);C++ public:
void SetLiteral(
EffectHandle^ parameter,
bool value
);JScript public function SetLiteral(
parameter : EffectHandle,
value : boolean
);
parameter Microsoft.DirectX.Direct3D.EffectHandle
An EffectHandle that is used as a unique identifier for the parameter.value System.Boolean
Set to true to make the parameter a literal. Set to false if the parameter can change value during the shader lifetime.
Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center