Compile and return a shader object of the specified type using the specified shader code.
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public Shader(
ShaderType type,
string code
)
Parameters
- type
- Type: ShaderType
Determines whether to build a vertex shader, fragment shader, or other shader. - code
- Type: SystemString
Contains the code to compile.
See Also