#include <MorphComponent.hpp>
|
C3D_API | MorphComponent (Submesh &submesh) |
| Constructor. More...
|
|
C3D_API void | gather (ShaderFlags const &shaderFlags, ProgramFlags const &programFlags, MaterialRPtr material, ashes::BufferCRefArray &buffers, std::vector< uint64_t > &offsets, ashes::PipelineVertexInputStateCreateInfoCRefArray &layouts, TextureFlagsArray const &mask, uint32_t ¤tLocation) override |
| Gathers buffers that need to go in a vertex layout. More...
|
|
C3D_API SubmeshComponentSPtr | clone (Submesh &submesh) const override |
|
GpuBufferOffsetT< InterleavedVertex > const & | getAnimationBuffer () const |
|
GpuBufferOffsetT< InterleavedVertex > & | getAnimationBuffer () |
|
bool | isReady () const |
|
InterleavedVertexArray & | getData () |
|
ProgramFlags | getProgramFlags (MaterialRPtr material) const override |
|
C3D_API | SubmeshComponent (Submesh &submesh, castor::String const &type, uint32_t id) |
| Constructor. More...
|
|
virtual C3D_API | ~SubmeshComponent () noexcept=default |
| Destructor. More...
|
|
C3D_API bool | initialise (RenderDevice const &device) |
| Initialises the submesh. More...
|
|
C3D_API void | cleanup (RenderDevice const &device) |
| Cleans the submesh. More...
|
|
C3D_API void | upload () |
| Uploads data on VRAM. More...
|
|
virtual C3D_API void | gather (ShaderFlags const &shaderFlags, ProgramFlags const &programFlags, MaterialRPtr material, ashes::BufferCRefArray &buffers, std::vector< uint64_t > &offsets, ashes::PipelineVertexInputStateCreateInfoCRefArray &layouts, TextureFlagsArray const &mask, uint32_t ¤tLocation)=0 |
| Gathers buffers that need to go in a vertex layout. More...
|
|
virtual C3D_API ProgramFlags | getProgramFlags (MaterialRPtr material) const =0 |
|
virtual C3D_API VkBufferUsageFlags | getUsageFlags () const |
|
virtual C3D_API SubmeshComponentSPtr | clone (Submesh &submesh) const =0 |
|
castor::String const & | getType () const |
|
void | needsUpdate () |
| Sets the component to be updated. More...
|
|
uint32_t | getID () |
|
◆ MorphComponent()
Constructor.
- Parameters
-
[in] | submesh | The parent submesh. |
◆ clone()
C3D_API SubmeshComponentSPtr castor3d::MorphComponent::clone |
( |
Submesh & |
submesh | ) |
const |
|
overridevirtual |
- Returns
- Clones this component into given submesh.
- Parameters
-
[in,out] | submesh | Receives the cloned component. |
Implements castor3d::SubmeshComponent.
◆ gather()
C3D_API void castor3d::MorphComponent::gather |
( |
ShaderFlags const & |
shaderFlags, |
|
|
ProgramFlags const & |
programFlags, |
|
|
MaterialRPtr |
material, |
|
|
ashes::BufferCRefArray & |
buffers, |
|
|
std::vector< uint64_t > & |
offsets, |
|
|
ashes::PipelineVertexInputStateCreateInfoCRefArray & |
layouts, |
|
|
TextureFlagsArray const & |
mask, |
|
|
uint32_t & |
currentLocation |
|
) |
| |
|
overridevirtual |
Gathers buffers that need to go in a vertex layout.
- Parameters
-
[in] | shaderFlags | The shader flags. |
[in] | programFlags | The program flags. |
[in] | material | The material. |
[in,out] | buffers | Receives the buffers. |
[in,out] | offsets | Receives the buffers offsets. |
[in,out] | layouts | Receives the vertex layouts. |
[in] | mask | The textures mask. |
[in,out] | currentLocation | The current attribute location. |
Implements castor3d::SubmeshComponent.
◆ getAnimationBuffer() [1/2]
◆ getAnimationBuffer() [2/2]
◆ getData()
◆ getProgramFlags()
ProgramFlags castor3d::MorphComponent::getProgramFlags |
( |
MaterialRPtr |
material | ) |
const |
|
inlineoverridevirtual |
◆ isReady()
bool castor3d::MorphComponent::isReady |
( |
| ) |
const |
|
inline |
◆ BindingPoint
C3D_API uint32_t constexpr castor3d::MorphComponent::BindingPoint = 1u |
|
staticconstexpr |
◆ Name
C3D_API castor::String const castor3d::MorphComponent::Name |
|
static |
The documentation for this class was generated from the following file: