Castor3D 0.16.0
Multiplatform 3D engine
|
#include <BaseDataComponent.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. | |
void | setData (castor::Vector< DataT > const &data) |
castor::Vector< DataT > & | getData () |
castor::Vector< DataT > 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 |
|
inlineoverridevirtual |
Copies given component's data into this one.
[in,out] | data | The source component's data. |
Implements castor3d::SubmeshComponentData.
|
inlineoverridevirtual |
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.
References castor3d::gatherBaseDataBuffer().
|
inline |
|
inline |
|
inline |
C3D_API castor3d::SubmeshComponentData::SubmeshComponentData | ( | Submesh & | submesh | ) |