Sets the value of a shader variable. Enables this program as a side effect.
Namespace: HighGLAssembly: HighGL (in HighGL.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public void SetUniform( string name, bool value ) |
Visual Basic |
---|
Public Sub SetUniform ( _ name As String, _ value As Boolean _ ) |
Visual C++ |
---|
public: void SetUniform( String^ name, bool value ) |
Parameters
- name
- Type: System..::..String
The variable to modify.
- value
- Type: System..::..Boolean
The new value.
Exceptions
Exception | Condition |
---|---|
System..::..ObjectDisposedException | If this object was disposed. |
System..::..ArgumentException | If the variable does not support the type. |
System..::..InvalidOperationException | If the location of the shader variable could not be obtained. |