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