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, ref Matrix4 value ) |
Visual Basic |
---|
Public Sub SetUniform ( _ variable As DVRRenderer..::..ShaderUniform, _ ByRef value As Matrix4 _ ) |
Visual C++ |
---|
public: void SetUniform( DVRRenderer..::..ShaderUniform variable, Matrix4% value ) |
Parameters
- variable
- Type: VideoDVR..::..DVRRenderer..::..ShaderUniform
The variable to modify.
- value
- Type: Matrix4%
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. |