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, 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
| 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. |