16 virtual bool compile (
const std::string& shaderPath) = 0;
18 virtual bool compile(
const std::string& vert,
const std::string& frag) = 0;
Backend-agnostic compiled shader program.
virtual void bind()=0
Binds this program as the active shader for subsequent draws.
virtual ~Shader()=default
virtual bool compile(const std::string &vert, const std::string &frag)=0
Compiles separate vertex and fragment source files.
virtual bool compile(const std::string &shaderPath)=0
Compiles a combined shader source file (or backend-specific bundle) at the given path.
Backend-facing rendering layer shared by the four graphics backends.
Root namespace for everything the engine exposes.