Ctor.
Namespace: HighGLAssembly: HighGL (in HighGL.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Visual Basic |
---|
Public Sub New ( _
type As ShaderType, _
source As String, _
Optional uniforms As ShaderVariable() = Nothing _
) |
Visual C++ |
---|
public:
Shader(
ShaderType type,
String^ source,
array<ShaderVariable^>^ uniforms = nullptr
) |
Parameters
- type
- Type: ShaderType
The type of the shader.
- source
- Type: System..::..String
The source code of the shader.
- uniforms (Optional)
- Type: array<HighGL..::..ShaderVariable>[]()[][]
List of uniform variables supported by this shader.
Exceptions
See Also