![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <shader.hpp>
Public Member Functions | |
| Shader (ID3D11Device &device, std::wstring guid, const CompiledShader &compiled_shader) | |
| Shader (const Shader &shader)=delete | |
| Shader (Shader &&shader) noexcept | |
| virtual | ~Shader () |
| Shader & | operator= (const Shader &shader)=delete |
| Shader & | operator= (Shader &&shader) noexcept |
| void | BindShader (ID3D11DeviceContext &device_context) const noexcept |
Public Member Functions inherited from mage::Resource< Shader< ShaderT, PipelineStageT > > | |
| Resource (std::wstring guid) noexcept | |
| Resource (const Resource &resource)=delete | |
| Resource (Resource &&resource) noexcept | |
| virtual | ~Resource () |
| Resource & | operator= (const Resource &resource)=delete |
| Resource & | operator= (Resource &&resource) noexcept |
| const std::wstring_view | GetGuid () const noexcept |
| bool | IsFileResource () const |
| const std::filesystem::path | GetPath () const |
Private Member Functions | |
| void | SetupShader (ID3D11Device &device, const CompiledShader &compiled_shader) |
Private Attributes | |
| ComPtr< ShaderT > | m_shader |
A class of shaders.
| ShaderT | The shader type. |
| PipelineStageT | The pipeline stage type. |
|
explicit |
Constructs a shader.
| [in,out] | device | A reference to the device. |
| [in] | guid | The globally unique identifier. |
| [in] | compiled_shader | A reference to the compiled shader. |
| Exception | Failed to initialize this shader. |
|
delete |
Constructs a shader from the given shader.
| [in] | shader | A reference to the shader to copy. |
|
noexcept |
Constructs a shader by moving the given shader.
| [in] | shader | A reference to the shader to move. |
|
virtual |
Destructs this shader.
|
noexcept |
Binds this shader.
| [in,out] | device_context | A reference to the device context. |
|
delete |
Copies the given shader to this shader.
| [in] | shader | A reference to the shader to copy. |
|
noexcept |
Moves the given shader to this shader.
| [in] | shader | A reference to the shader to move. |
|
private |
Sets up this shader.
| [in,out] | device | A reference to the device. |
| [in] | compiled_shader | A reference to the compiled shader. |
| Exception | Failed to setup this shader. |
|
private |
A pointer to the shader of this shader.