|
SleakEngine 1.0.0
C++23 multi-backend game engine
|
Backend-agnostic compiled shader program. More...
#include <Shader.hpp>
Public Member Functions | |
| virtual | ~Shader ()=default |
| virtual void | bind ()=0 |
| Binds this program as the active shader for subsequent draws. | |
| virtual bool | compile (const std::string &shaderPath)=0 |
| Compiles a combined shader source file (or backend-specific bundle) at the given path. | |
| virtual bool | compile (const std::string &vert, const std::string &frag)=0 |
| Compiles separate vertex and fragment source files. | |
Backend-agnostic compiled shader program.
Definition at line 11 of file Shader.hpp.
|
virtualdefault |
|
pure virtual |
Binds this program as the active shader for subsequent draws.
Implemented in Sleak::RenderEngine::DirectX11Shader, Sleak::RenderEngine::DirectX12Shader, Sleak::RenderEngine::OpenGLShader, and Sleak::RenderEngine::VulkanShader.
|
pure virtual |
Compiles a combined shader source file (or backend-specific bundle) at the given path.
Implemented in Sleak::RenderEngine::DirectX11Shader, Sleak::RenderEngine::DirectX12Shader, Sleak::RenderEngine::OpenGLShader, and Sleak::RenderEngine::VulkanShader.
|
pure virtual |
Compiles separate vertex and fragment source files.
Implemented in Sleak::RenderEngine::DirectX11Shader, Sleak::RenderEngine::DirectX12Shader, Sleak::RenderEngine::OpenGLShader, and Sleak::RenderEngine::VulkanShader.