cubos::engine::Shader class final

Contains a shader stage created from GLSL code.

Constructors, destructors, conversion operators

Shader(cubos::core::gl::ShaderStage shaderStage)
Constructs a shader from code.

Public functions

auto shaderStage() const -> cubos::core::gl::ShaderStage
Returns the asset's shader stage.

Function documentation

cubos::engine::Shader::Shader(cubos::core::gl::ShaderStage shaderStage)

Constructs a shader from code.

Parameters
shaderStage Shader stage created from GLSL code.

cubos::core::gl::ShaderStage cubos::engine::Shader::shaderStage() const

Returns the asset's shader stage.

Returns Shader stage.