![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <deferred_pass.hpp>
Public Member Functions | |
DeferredPass (ID3D11DeviceContext &device_context, StateManager &state_manager, ResourceManager &resource_manager) | |
DeferredPass (const DeferredPass &pass)=delete | |
DeferredPass (DeferredPass &&pass) noexcept | |
~DeferredPass () | |
DeferredPass & | operator= (const DeferredPass &pass)=delete |
DeferredPass & | operator= (DeferredPass &&pass) noexcept |
void | Render (BRDF brdf, bool vct) |
void | Dispatch (const U32x2 &viewport_size, BRDF brdf, bool vct) |
Private Member Functions | |
void | BindFixedState () const noexcept |
Private Attributes | |
std::reference_wrapper< ID3D11DeviceContext > | m_device_context |
std::reference_wrapper< StateManager > | m_state_manager |
std::reference_wrapper< ResourceManager > | m_resource_manager |
VertexShaderPtr | m_msaa_vs |
A class of deferred passes for unpacking GBuffers and performing light calculations using the rendering or compute pipeline.
|
explicit |
Constructs a deferred pass.
[in,out] | device_context | A reference to the device context. |
[in,out] | state_manager | A reference to the state manager. |
[in,out] | resource_manager | A reference to the resource manager. |
|
delete |
Constructs a deferred pass from the given deferred shading pass.
[in] | pass | A reference to the deferred pass to copy. |
|
defaultnoexcept |
Constructs a deferred pass by moving the given deferred pass.
[in] | pass | A reference to the deferred pass to move. |
|
default |
Destructs this deferred pass.
|
privatenoexcept |
Binds the fixed state of this deferred pass.
Dispatches.
[in] | viewport_size | A reference to the viewport size. |
[in] | brdf | The BRDF. |
[in] | vct | true if voxel cone tracing should be enabled. false otherwise. |
Exception | Failed to dispatch. |
|
delete |
Copies the given deferred pass to this deferred pass.
[in] | pass | A reference to the deferred pass to copy. |
|
defaultnoexcept |
Moves the given deferred pass to this deferred pass.
[in] | pass | A reference to the deferred pass to move. |
void mage::rendering::DeferredPass::Render | ( | BRDF | brdf, |
bool | vct | ||
) |
Renders.
[in] | brdf | The BRDF. |
[in] | vct | true if voxel cone tracing should be enabled. false otherwise. |
Exception | Failed to render the world. |
|
private |
A reference to the device context of this deferred pass.
|
private |
A pointer to the vertex shader of this deferred pass.
|
private |
A reference to the resource manager of this deferred pass.
|
private |
A reference to the state manager of this deferred pass.