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,
	float value
)
Visual Basic
Public Sub SetUniform ( _
	name As String, _
	value As Single _
)
Visual C++
public:
void SetUniform(
	String^ name, 
	float value
)

Parameters

name
Type: System..::..String
The variable to modify.
value
Type: System..::..Single
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