|
Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
|
Stores all geometry in a single set of index and vertex buffers. More...
#include <foray_geometrymanager.hpp>
Public Member Functions | |
| GeometryStore () | |
| void | InitOrUpdate () |
| Rewrites Indices and Vertices from CPU side storage to the GPU buffers. | |
| void | Destroy () |
| virtual | ~GeometryStore () |
| bool | CmdBindBuffers (VkCommandBuffer commandBuffer) |
| VkDescriptorBufferInfo | GetVertexBufferDescriptorInfo () const |
| VkDescriptorBufferInfo | GetIndexBufferDescriptorInfo () const |
Public Member Functions inherited from foray::scene::GlobalComponent | |
| virtual Scene * | GetScene () override |
| Scene this component is a part of. Casts mRegistry to Scene. | |
| virtual Registry * | GetGlobals () override |
| Global component registry. Returns mRegistry. | |
| virtual core::Context * | GetContext () override |
| Vulkan Context. Casts mRegistry to Scene and returns Scene->GetContext() | |
Public Member Functions inherited from foray::scene::Component | |
| virtual | ~Component () |
| Destructor. Provide virtual constructors in inheriting classes, to make sure they get finalized correctly. | |
Public Member Functions inherited from foray::NoMoveDefaults | |
| NoMoveDefaults ()=default | |
| NoMoveDefaults (const NoMoveDefaults &other)=delete | |
| NoMoveDefaults (NoMoveDefaults &&other)=default | |
| NoMoveDefaults & | operator= (const NoMoveDefaults &other)=delete |
Protected Attributes | |
| core::ManagedBuffer | mIndicesBuffer |
| core::ManagedBuffer | mVerticesBuffer |
| std::vector< Vertex > | mVertices |
| std::vector< uint32_t > | mIndices |
| std::vector< std::unique_ptr< Mesh > > | mMeshes |
Protected Attributes inherited from foray::scene::Component | |
| Registry * | mRegistry = nullptr |
| std::string | mName = "" |
Additional Inherited Members | |
Public Attributes inherited from foray::scene::Component | |
| friend | Registry |
Protected Member Functions inherited from foray::Polymorphic | |
| virtual void | __makeMePolymorphic () |
Stores all geometry in a single set of index and vertex buffers.
| foray::scene::gcomp::GeometryStore::GeometryStore | ( | ) |
|
inlinevirtual |
| bool foray::scene::gcomp::GeometryStore::CmdBindBuffers | ( | VkCommandBuffer | commandBuffer | ) |
| void foray::scene::gcomp::GeometryStore::Destroy | ( | ) |
|
inline |
|
inline |
| void foray::scene::gcomp::GeometryStore::InitOrUpdate | ( | ) |
Rewrites Indices and Vertices from CPU side storage to the GPU buffers.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |