|
C3D_API | IndexMapping (Submesh &submesh, castor::String const &type, VkBufferUsageFlags bufferUsageFlags) |
| Constructor. More...
|
|
virtual C3D_API uint32_t | getCount () const =0 |
|
virtual C3D_API uint32_t | getComponentsCount () const =0 |
|
virtual C3D_API void | sortByDistance (castor::Point3f const &cameraPosition)=0 |
| Sorts the face from farthest to nearest from the camera. More...
|
|
virtual C3D_API void | computeNormals (bool reverted=false)=0 |
| Generates normals and tangents. More...
|
|
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...
|
|
ProgramFlags | getProgramFlags (MaterialRPtr material) const override |
|
VkBufferUsageFlags | getUsageFlags () 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 () |
|