#include <PassBuffer.hpp>
◆ PassBuffer()
Constructor.
- Parameters
-
[in] | engine | The engine. |
[in] | device | The GPU device. |
[in] | count | The max passes count. |
◆ addPass()
C3D_API uint32_t castor3d::PassBuffer::addPass |
( |
Pass & | pass | ) |
|
Adds a pass to the buffer.
- Parameters
-
◆ cleanup()
C3D_API void castor3d::PassBuffer::cleanup |
( |
| ) |
|
Clears the dirty passes container.
◆ createBinding()
C3D_API void castor3d::PassBuffer::createBinding |
( |
ashes::DescriptorSet & | descriptorSet, |
|
|
VkDescriptorSetLayoutBinding const & | binding ) const |
Creates the descriptor set binding at given point.
- Parameters
-
[in] | descriptorSet | The descriptor set that receives the binding. |
[in] | binding | The descriptor set layout binding. |
◆ createLayoutBinding()
C3D_API VkDescriptorSetLayoutBinding castor3d::PassBuffer::createLayoutBinding |
( |
uint32_t | binding, |
|
|
VkShaderStageFlags | stages = (VK_SHADER_STAGE_FRAGMENT_BIT|VK_SHADER_STAGE_GEOMETRY_BIT|VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT|VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT|VK_SHADER_STAGE_VERTEX_BIT) ) const |
Creates the descriptor set layout binding.
◆ createPassBinding()
C3D_API void castor3d::PassBuffer::createPassBinding |
( |
crg::FramePass & | pass, |
|
|
uint32_t | binding ) const |
Creates a frame pass binding.
◆ getBinding()
C3D_API ashes::WriteDescriptorSet castor3d::PassBuffer::getBinding |
( |
uint32_t | binding | ) |
const |
Creates the descriptor write for this buffer.
◆ getCurrentPassTypeCount()
uint32_t castor3d::PassBuffer::getCurrentPassTypeCount |
( |
| ) |
const |
|
inline |
◆ getData()
- Returns
- The pointer to the data for given pass ID.
◆ getMaxPassTypeCount()
C3D_API uint32_t castor3d::PassBuffer::getMaxPassTypeCount |
( |
| ) |
const |
- Returns
- The maximum pass types count (for visibility buffer use).
◆ getPassTypeDetails()
- Returns
- The pass type details for given pass type index (for visibility buffer use).
◆ getPassTypeIndex()
- Returns
- The pass type index (for visibility buffer use).
◆ getPtr()
uint8_t * castor3d::PassBuffer::getPtr |
( |
| ) |
|
|
inline |
◆ removePass()
C3D_API void castor3d::PassBuffer::removePass |
( |
Pass & | pass | ) |
|
|
noexcept |
Removes a pass from the buffer.
- Parameters
-
◆ update()
Updates the passes buffer.
- Parameters
-
[in] | specifics | The buffers specific to pass components. |
[in,out] | uploader | Receives the upload requests. |
The documentation for this class was generated from the following file: