OrbitEngine::Graphics::Shader class

Derived classes

class D3DShader
class GLShader
class VKShader

Public static functions

static auto Create() -> Shader*

Constructors, destructors, conversion operators

~Shader()
Shader() protected

Public functions

void attachFromFile(ShaderType type, std::string& path, bool binary = false)
void attach(ShaderType type, const std::string& source, const ShaderReflection& reflection)
void attachFromSource(ShaderType type, const std::string& source) pure virtual
void attachFromBinary(ShaderType type, const std::vector<char>& binary) pure virtual
void finalize() pure virtual
void bind() const pure virtual
void matchLayout(Mesh* mesh) const virtual
auto getReflections() const -> const ShaderReflections&

Protected variables

ShaderReflections p_Reflections