Rasterfarm-SDK
Loading...
Searching...
No Matches
Engine::VertexMemory Class Reference

#include <memory.h>

Inheritance diagram for Engine::VertexMemory:
Engine::Memory

Public Member Functions

 VertexMemory (VkDevice vkLogicalDevice, uint bufferSize, ShaderBufferType bufferType)
 
virtual void allocate ()
 
virtual ~VertexMemory ()
 
VkBuffer getBuffer ()
 
uint getBufferSize ()
 
void flushBuffer ()
 
void * getData ()
 
- Public Member Functions inherited from Engine::Memory
 Memory (VkDevice vkLogicalDevice, MemoryType memoryType)
 
virtual ~Memory ()
 
MemoryType getMemoryType ()
 
const VkMemoryRequirements & getMemoryRequirements ()
 
bool isCoherent ()
 

Protected Attributes

MemoryAllocatorpAllocator
 
uint bufferSize
 
ShaderBufferType bufferType
 
void * pData
 
VkBuffer buffer
 
AllocationHandle bufferAllocationHandle
 
- Protected Attributes inherited from Engine::Memory
VkDevice logicalDevice
 
MemoryType memoryType
 
VkMemoryRequirements memoryRequirements
 

Constructor & Destructor Documentation

◆ VertexMemory()

Engine::VertexMemory::VertexMemory ( VkDevice vkLogicalDevice,
uint bufferSize,
ShaderBufferType bufferType )
Parameters
Thelogical-device from which memory will-be allocated.
Sizein bytes of device-memory to allocate.
Thebuffer-type to create.

◆ ~VertexMemory()

virtual Engine::VertexMemory::~VertexMemory ( )
virtual

Member Function Documentation

◆ allocate()

virtual void Engine::VertexMemory::allocate ( )
virtual

Implements Engine::Memory.

◆ flushBuffer()

void Engine::VertexMemory::flushBuffer ( )

◆ getBuffer()

VkBuffer Engine::VertexMemory::getBuffer ( )
inline

◆ getBufferSize()

uint Engine::VertexMemory::getBufferSize ( )
inline

◆ getData()

void * Engine::VertexMemory::getData ( )
inline

Member Data Documentation

◆ buffer

VkBuffer Engine::VertexMemory::buffer
protected

◆ bufferAllocationHandle

AllocationHandle Engine::VertexMemory::bufferAllocationHandle
protected

◆ bufferSize

uint Engine::VertexMemory::bufferSize
protected

◆ bufferType

ShaderBufferType Engine::VertexMemory::bufferType
protected

◆ pAllocator

MemoryAllocator* Engine::VertexMemory::pAllocator
protected

◆ pData

void* Engine::VertexMemory::pData
protected

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