#include <InstantiationComponent.hpp>
◆ ComponentData()
castor3d::InstantiationComponent::ComponentData::ComponentData |
( |
Submesh & | submesh, |
|
|
uint32_t | threshold ) |
|
explicit |
◆ copy()
◆ end() [1/2]
InstanceDataMap::iterator castor3d::InstantiationComponent::ComponentData::end |
( |
| ) |
|
|
inline |
◆ end() [2/2]
InstanceDataMap::const_iterator castor3d::InstantiationComponent::ComponentData::end |
( |
| ) |
const |
|
inline |
◆ find() [1/2]
C3D_API InstanceDataMap::iterator castor3d::InstantiationComponent::ComponentData::find |
( |
Pass const & | pass | ) |
|
◆ find() [2/2]
C3D_API InstanceDataMap::const_iterator castor3d::InstantiationComponent::ComponentData::find |
( |
Pass const & | pass | ) |
const |
◆ gather()
void castor3d::InstantiationComponent::ComponentData::gather |
( |
PipelineFlags const & | flags, |
|
|
Pass const & | pass, |
|
|
ObjectBufferOffset const & | bufferOffsets, |
|
|
ashes::BufferCRefArray & | buffers, |
|
|
castor::Vector< uint64_t > & | offsets, |
|
|
ashes::PipelineVertexInputStateCreateInfoCRefArray & | layouts, |
|
|
uint32_t & | currentBinding, |
|
|
uint32_t & | currentLocation ) |
|
overridevirtual |
Gathers buffers that need to go in a vertex layout.
- Parameters
-
[in] | flags | The pipeline flags. |
[in] | pass | The material pass. |
[in] | bufferOffsets | Holds the buffers. |
[in,out] | buffers | Receives the buffers. |
[in,out] | offsets | Receives the buffers offsets. |
[in,out] | layouts | Receives the vertex layouts. |
[in,out] | currentBinding | The current buffer binding. |
[in,out] | currentLocation | The current attribute location. |
Implements castor3d::SubmeshComponentData.
◆ getMaxRefCount()
C3D_API uint32_t castor3d::InstantiationComponent::ComponentData::getMaxRefCount |
( |
| ) |
const |
- Returns
- The maximum instances count, amongst all materials.
◆ getRefCount()
C3D_API uint32_t castor3d::InstantiationComponent::ComponentData::getRefCount |
( |
Pass const & | pass | ) |
const |
Retrieves the instances count.
- Parameters
-
[in] | pass | The material pass for which the instance count is retrieved |
- Returns
- The value
◆ getThreshold()
uint32_t castor3d::InstantiationComponent::ComponentData::getThreshold |
( |
| ) |
const |
|
inline |
◆ isInstanced()
bool castor3d::InstantiationComponent::ComponentData::isInstanced |
( |
uint32_t | count | ) |
const |
|
inline |
◆ ref()
C3D_API bool castor3d::InstantiationComponent::ComponentData::ref |
( |
Material const * | material | ) |
|
Increments instance count.
- Parameters
-
[in] | material | The material for which the instance count is incremented. |
- Returns
true
if the instance buffer has changed.
◆ unref()
C3D_API void castor3d::InstantiationComponent::ComponentData::unref |
( |
Material const * | material | ) |
|
Decrements instance count.
- Parameters
-
[in] | material | The material for which the instance count is decremented. |
The documentation for this struct was generated from the following file: