Karma Engine
Loading...
Searching...
No Matches
Karma::VulkanVertexBuffer Class Reference
Inheritance diagram for Karma::VulkanVertexBuffer:
Collaboration diagram for Karma::VulkanVertexBuffer:

Public Member Functions

 VulkanVertexBuffer (float *vertices, uint32_t size)
 
virtual void Bind () const override
 
virtual void UnBind () const override
 
virtual const BufferLayoutGetLayout () const override
 
virtual void SetLayout (const BufferLayout &layout) override
 
void CreateBuffer (VkDeviceSize size, VkBufferUsageFlags usage, VkMemoryPropertyFlags properties, VkBuffer &buffer, VkDeviceMemory &bufferMemory)
 
void CopyBuffer (VkBuffer srcBuffer, VkBuffer dstBuffer, VkDeviceSize size)
 
uint32_t FindMemoryType (uint32_t typeFilter, VkMemoryPropertyFlags properties)
 
VkBuffer GetVertexBuffer () const
 
VkDeviceMemory GetVertexBufferMemory () const
 
size_t GetBufferSize ()
 
- Public Member Functions inherited from Karma::VertexBuffer

Additional Inherited Members

- Static Public Member Functions inherited from Karma::VertexBuffer
static VertexBufferCreate (float *vertices, uint32_t size)
 

Member Function Documentation

◆ Bind()

void Karma::VulkanVertexBuffer::Bind ( ) const
overridevirtual

Implements Karma::VertexBuffer.

◆ GetLayout()

virtual const BufferLayout & Karma::VulkanVertexBuffer::GetLayout ( ) const
inlineoverridevirtual

Implements Karma::VertexBuffer.

◆ SetLayout()

virtual void Karma::VulkanVertexBuffer::SetLayout ( const BufferLayout & layout)
inlineoverridevirtual

Implements Karma::VertexBuffer.

◆ UnBind()

void Karma::VulkanVertexBuffer::UnBind ( ) const
overridevirtual

Implements Karma::VertexBuffer.


The documentation for this class was generated from the following files: