Sets the value of a shader variable.

Namespace: VideoDVR
Assembly: VideoDVR (in VideoDVR.exe) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public void SetUniform(
	DVRRenderer..::..ShaderUniform variable,
	int value
)
Visual Basic
Public Sub SetUniform ( _
	variable As DVRRenderer..::..ShaderUniform, _
	value As Integer _
)
Visual C++
public:
void SetUniform(
	DVRRenderer..::..ShaderUniform variable, 
	int value
)

Parameters

variable
Type: VideoDVR..::..DVRRenderer..::..ShaderUniform
The variable to modify.
value
Type: System..::..Int32
The new value.

Exceptions

ExceptionCondition
System..::..ArgumentExceptionIf the variable does not support the type.
[!:ShaderAccessException]If the shader variable is not modifyable from outside the class.
System..::..InvalidOperationExceptionIf the location of the shader variable could not be obtained.

See Also