Compile
This function will compile a shader.
Syntax
- bool Compile(number sourceid)
Parameters
- sourceid: The shader component to compile. This may be Shader::Vertex, Shader::Pixel, Shader::Geometry, Shader::Evaluation, or Shader::Control.
Returns
Returns true if the shader is successfully compiled, otherwise false is returned. If the shader fails to compile, information on why it failed can be retrieved with the Shader::GetLog() function.