Sets the value of a shader variable. Enables this program as a side effect.

Namespace: HighGL
Assembly: HighGL (in HighGL.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public void SetUniform(
	string name,
	ref Vector4 value
)
Visual Basic
Public Sub SetUniform ( _
	name As String, _
	ByRef value As Vector4 _
)
Visual C++
public:
void SetUniform(
	String^ name, 
	Vector4% value
)

Parameters

name
Type: System..::..String
The variable to modify.
value
Type: Vector4%
The new value.

Exceptions

ExceptionCondition
System..::..ObjectDisposedExceptionIf this object was disposed.
System..::..ArgumentExceptionIf the variable does not support the type.
System..::..InvalidOperationExceptionIf the location of the shader variable could not be obtained.

See Also