Shader.h
std::string GetLog()
Returns any additional logging information from the shader program. If the status Invalid...
ProgramID GetID()
Returns a Renderer::ProgramID refering to this shader.
Definition: Shader.h:101
Compile() was called, but the compilation failed. AddStage() and Copmile() may be called again to fix...
void AddStage(Stage, const std::string &)
Adds a stage to the shader program. If the stage already exists and the program has not been compiled...
Definition: AssetID.h:37
std::string GetShaderLanguage()
Returns a string containing the shader language recognized by the Shaders. This is dependent on the p...
Compile has not yet been called.
First stage of the shader. Processes each vertex.
void Compile()
Finalizes the programs stages. After this call, GetStatus() will either return Success, meaning the program is now usable, or Invalid, meaning compilation failed. In the case of failure, GetLog() may contain more information as to why the compilation failed.
Compile() was successful and the Shader may be used in rendering. See Material.
Allows you to specify rendering programs usually on your GPU.
Definition: Shader.h:51