Sets the value of a shader variable.
Namespace: VideoDVRAssembly: VideoDVR (in VideoDVR.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public void SetUniform( DVRRenderer..::..ShaderUniform variable, float value ) |
Visual Basic |
---|
Public Sub SetUniform ( _ variable As DVRRenderer..::..ShaderUniform, _ value As Single _ ) |
Visual C++ |
---|
public: void SetUniform( DVRRenderer..::..ShaderUniform variable, float value ) |
Parameters
- variable
- Type: VideoDVR..::..DVRRenderer..::..ShaderUniform
The variable to modify.
- value
- Type: System..::..Single
The new value.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentException | If the variable does not support the type. |
[!:ShaderAccessException] | If the shader variable is not modifyable from outside the class. |
System..::..InvalidOperationException | If the location of the shader variable could not be obtained. |