![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <voxel_grid_pass.hpp>
Public Member Functions | |
| VoxelGridPass (ID3D11DeviceContext &device_context, StateManager &state_manager, ResourceManager &resource_manager) | |
| VoxelGridPass (const VoxelGridPass &pass)=delete | |
| VoxelGridPass (VoxelGridPass &&pass) noexcept | |
| ~VoxelGridPass () | |
| VoxelGridPass & | operator= (const VoxelGridPass &pass)=delete |
| VoxelGridPass & | operator= (VoxelGridPass &&pass) noexcept |
| void | Render (std::size_t resolution) const noexcept |
Private Member Functions | |
| void | BindFixedState () const noexcept |
Private Attributes | |
| std::reference_wrapper< ID3D11DeviceContext > | m_device_context |
| std::reference_wrapper< StateManager > | m_state_manager |
| VertexShaderPtr | m_vs |
| GeometryShaderPtr | m_gs |
| PixelShaderPtr | m_ps |
A class of voxel grid passes for rendering voxel grids to screen.
|
explicit |
Constructs a voxel grid 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 voxel grid pass from the given voxel grid pass.
| [in] | pass | A reference to the voxel grid pass to copy. |
|
defaultnoexcept |
Constructs a voxel grid pass by moving the given voxel grid pass.
| [in] | pass | A reference to the voxel grid pass to move. |
|
default |
Destructs this voxel grid pass.
|
privatenoexcept |
Binds the fixed state of this voxel grid pass.
|
delete |
Copies the given voxel grid pass to this voxel grid pass.
| [in] | pass | A reference to the voxel grid pass to copy. |
|
defaultnoexcept |
Moves the given voxel grid pass to this voxel grid pass.
| [in] | pass | A reference to the voxel grid pass to move. |
|
noexcept |
Renders the given world.
| [in] | resolution | The resolution of the regular voxel grid. |
|
private |
A reference to the device context of this voxel grid pass.
|
private |
A pointer to the geometry shader of this voxel grid pass.
|
private |
A pointer to the pixel shader of this voxel grid pass.
|
private |
A reference to the state manager of this voxel grid pass.
|
private |
A pointer to the vertex shader of this voxel grid pass.