|
C3D_API | IndexMapping (Submesh &submesh, castor::String const &type, VkBufferUsageFlags bufferUsageFlags) |
| Constructeur.
|
|
virtual C3D_API uint32_t | getCount () const =0 |
|
virtual C3D_API uint32_t | getComponentsCount () const =0 |
|
virtual C3D_API void | computeNormals (bool reverted=false)=0 |
| Génère les normales et les tangentes.
|
|
virtual C3D_API void | computeTangents ()=0 |
| Génère les tangentes.
|
|
void | gather (PipelineFlags const &flags, MaterialObs material, ashes::BufferCRefArray &buffers, std::vector< uint64_t > &offsets, ashes::PipelineVertexInputStateCreateInfoCRefArray &layouts, uint32_t ¤tBinding, uint32_t ¤tLocation) override |
| Récupère les tampons qui doivent aller dans un vertex layout.
|
|
SubmeshFlags | getSubmeshFlags (Pass const *pass) const override |
|
VkBufferUsageFlags | getUsageFlags () const override |
|
C3D_API | SubmeshComponent (Submesh &submesh, castor::String const &type, uint32_t id) |
| Constructeur.
|
|
virtual C3D_API | ~SubmeshComponent () noexcept=default |
| Destructeur.
|
|
C3D_API bool | initialise (RenderDevice const &device) |
| Initialise le sous-maillage.
|
|
C3D_API void | cleanup (RenderDevice const &device) |
| Nettoie le sous-maillage.
|
|
C3D_API void | upload () |
| Met les données en VRAM.
|
|
virtual C3D_API void | gather (PipelineFlags const &flags, MaterialObs material, ashes::BufferCRefArray &buffers, std::vector< uint64_t > &offsets, ashes::PipelineVertexInputStateCreateInfoCRefArray &layouts, uint32_t ¤tBinding, uint32_t ¤tLocation)=0 |
| Récupère les tampons qui doivent aller dans un vertex layout.
|
|
virtual C3D_API ProgramFlags | getProgramFlags (Material const &material) const |
|
virtual C3D_API SubmeshFlags | getSubmeshFlags (Pass const *pass) const |
|
virtual C3D_API VkBufferUsageFlags | getUsageFlags () const |
|
virtual C3D_API SubmeshComponentUPtr | clone (Submesh &submesh) const =0 |
|
castor::String const & | getType () const |
|
void | needsUpdate () |
| Dit que le composant doit être mis à jour.
|
|
uint32_t | getID () |
|