#include <RenderCube.hpp>
|
virtual C3D_API | ~RenderCube () |
|
C3D_API | RenderCube (RenderDevice const &device, bool nearest, SamplerObs sampler={}) |
| Constructor.
|
|
C3D_API void | createPipelines (VkExtent2D const &size, ashes::PipelineShaderStageCreateInfoArray const &program, ashes::ImageView const &view, ashes::RenderPass const &renderPass, ashes::VkPushConstantRangeArray const &pushRanges) |
| Creates the rendering pipelines.
|
|
C3D_API void | createPipelines (VkExtent2D const &size, ashes::PipelineShaderStageCreateInfoArray const &program, ashes::ImageView const &view, ashes::RenderPass const &renderPass, ashes::VkPushConstantRangeArray const &pushRanges, ashes::PipelineDepthStencilStateCreateInfo const &dsState) |
| Creates the rendering pipelines.
|
|
C3D_API void | cleanup () noexcept |
| Cleans up GPU objects.
|
|
C3D_API void | prepareFrame (ashes::RenderPass const &renderPass, uint32_t subpassIndex, uint32_t face) |
| Prepares the commands to render one face from the cube.
|
|
C3D_API void | registerFrame (ashes::CommandBuffer &commandBuffer, uint32_t face) const |
| Prepares the commands to render one face from the cube, inside given command buffer.
|
|
◆ ~RenderCube()
virtual C3D_API castor3d::RenderCube::~RenderCube |
( |
| ) |
|
|
virtual |
◆ RenderCube()
Constructor.
- Parameters
-
[in] | device | The GPU device. |
[in] | nearest | Tells if the sampler needs a Nearest filter or not, if sampler is nullptr. |
[in] | sampler | The sampler to use. |
◆ cleanup()
C3D_API void castor3d::RenderCube::cleanup |
( |
| ) |
|
|
noexcept |
◆ createPipelines() [1/2]
C3D_API void castor3d::RenderCube::createPipelines |
( |
VkExtent2D const & | size, |
|
|
ashes::PipelineShaderStageCreateInfoArray const & | program, |
|
|
ashes::ImageView const & | view, |
|
|
ashes::RenderPass const & | renderPass, |
|
|
ashes::VkPushConstantRangeArray const & | pushRanges ) |
Creates the rendering pipelines.
- Parameters
-
[in] | size | The render size. |
[in] | program | The shader program. |
[in] | view | The source view. |
[in] | renderPass | The render pass to use. |
[in] | pushRanges | The push constant ranges. |
◆ createPipelines() [2/2]
C3D_API void castor3d::RenderCube::createPipelines |
( |
VkExtent2D const & | size, |
|
|
ashes::PipelineShaderStageCreateInfoArray const & | program, |
|
|
ashes::ImageView const & | view, |
|
|
ashes::RenderPass const & | renderPass, |
|
|
ashes::VkPushConstantRangeArray const & | pushRanges, |
|
|
ashes::PipelineDepthStencilStateCreateInfo const & | dsState ) |
Creates the rendering pipelines.
- Parameters
-
[in] | size | The render size. |
[in] | program | The shader program. |
[in] | view | The source view. |
[in] | renderPass | The render pass to use. |
[in] | pushRanges | The push constant ranges. |
[in] | dsState | The depth stencil state to use. |
◆ prepareFrame()
C3D_API void castor3d::RenderCube::prepareFrame |
( |
ashes::RenderPass const & | renderPass, |
|
|
uint32_t | subpassIndex, |
|
|
uint32_t | face ) |
Prepares the commands to render one face from the cube.
- Parameters
-
[in] | renderPass | The render pass to use. |
[in] | subpassIndex | The render subpass index. |
[in] | face | The face index. |
◆ registerFrame()
C3D_API void castor3d::RenderCube::registerFrame |
( |
ashes::CommandBuffer & | commandBuffer, |
|
|
uint32_t | face ) const |
Prepares the commands to render one face from the cube, inside given command buffer.
- Parameters
-
[in,out] | commandBuffer | The command buffer. |
[in] | face | The face index. |
◆ m_device
◆ m_pipelineLayout
ashes::PipelineLayoutPtr castor3d::RenderCube::m_pipelineLayout |
|
protected |
◆ m_sampler
The documentation for this class was generated from the following file: