Castor3D 0.16.0
Multiplatform 3D engine
|
#include <PassMasksComponent.hpp>
Public Member Functions | |
void | gather (PipelineFlags const &flags, Pass const &pass, ObjectBufferOffset const &bufferOffsets, ashes::BufferCRefArray &buffers, castor::Vector< uint64_t > &offsets, ashes::PipelineVertexInputStateCreateInfoCRefArray &layouts, uint32_t ¤tBinding, uint32_t ¤tLocation) override |
Gathers buffers that need to go in a vertex layout. | |
void | copy (SubmeshComponentDataRPtr data) const override |
Copies given component's data into this one. | |
C3D_API void | addDatas (PassMasks const *const begin, PassMasks const *const end) |
Adds bone datas. | |
C3D_API void | addDatas (castor::Vector< PassMasks > const &data) |
Adds masks datas. | |
template<size_t Count> | |
void | addDatas (castor::Array< PassMasks, Count > const &data) |
Adds masks datas. | |
bool | hasData () const |
void | setData (castor::Vector< PassMasks > data) |
castor::Vector< PassMasks > & | getData () |
castor::Vector< PassMasks > const & | getData () const |
C3D_API | SubmeshComponentData (Submesh &submesh) |
Public Member Functions inherited from castor3d::SubmeshComponentData | |
C3D_API | SubmeshComponentData (Submesh &submesh) |
C3D_API bool | initialise (RenderDevice const &device) |
Initialises the submesh. | |
C3D_API void | cleanup (RenderDevice const &device) |
Cleans the submesh. | |
C3D_API void | upload (UploadData &uploader) |
Uploads data on VRAM. | |
virtual C3D_API VkBufferUsageFlags | getUsageFlags () const noexcept |
void | needsUpdate () |
Public Member Functions inherited from castor3d::SubmeshSubComponent | |
SubmeshSubComponent ()=default | |
SubmeshSubComponent (SubmeshSubComponent const &)=delete | |
SubmeshSubComponent & | operator= (SubmeshSubComponent const &)=delete |
C3D_API | SubmeshSubComponent (SubmeshSubComponent &&) noexcept=default |
C3D_API SubmeshSubComponent & | operator= (SubmeshSubComponent &&) noexcept=default |
virtual C3D_API | ~SubmeshSubComponent () noexcept=default |
Additional Inherited Members | |
Protected Attributes inherited from castor3d::SubmeshComponentData | |
Submesh & | m_submesh |
|
inline |
Adds masks datas.
[in] | data | The masks datas. |
References addDatas().
C3D_API void castor3d::PassMasksComponent::ComponentData::addDatas | ( | castor::Vector< PassMasks > const & | data | ) |
Adds masks datas.
[in] | data | The masks. |
C3D_API void castor3d::PassMasksComponent::ComponentData::addDatas | ( | PassMasks const *const | begin, |
PassMasks const *const | end ) |
Adds bone datas.
[in] | begin | The bones data begin. |
[in] | end | The bones data end. |
Referenced by addDatas().
|
overridevirtual |
Copies given component's data into this one.
[in,out] | data | The source component's data. |
Implements castor3d::SubmeshComponentData.
|
overridevirtual |
Gathers buffers that need to go in a vertex layout.
[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.
|
inline |
|
inline |
|
inline |
|
inline |