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

#include <memory.h>

Inheritance diagram for Engine::ImageMemory:
Engine::Memory

Public Member Functions

 ImageMemory (VkDevice vkLogicalDevice, VkImage image, TextureType TextureType, VkFormat format, uint mipLevels)
 
 ImageMemory (VkDevice vkLogicalDevice, const VkImageCreateInfo &createInfo)
 
virtual ~ImageMemory ()
 
void flushBuffer ()
 
void stageComplete ()
 
VkImage getImage ()
 
void setImage (VkImage image, TextureType textureType, VkFormat format, uint mipLevels)
 
VkImageView getView ()
 
void allocate ()
 
const VkMemoryRequirements & getStageMemoryRequirements ()
 
CommandBuffergetStageCommandBuffer ()
 
const void * getStageBufferData ()
 
const void * getImageData ()
 
VkBuffer getBuffer ()
 
- Public Member Functions inherited from Engine::Memory
 Memory (VkDevice vkLogicalDevice, MemoryType memoryType)
 
virtual ~Memory ()
 
MemoryType getMemoryType ()
 
const VkMemoryRequirements & getMemoryRequirements ()
 
bool isCoherent ()
 

Protected Attributes

MemoryAllocatorpStageAllocator
 
MemoryAllocatorpImageAllocator
 
VkImage image
 
VkImageView view
 
CommandBufferpStageCommandBuffer
 
VkMemoryRequirements stageMemoryRequirements
 
VkBuffer stageBuffer
 
void * pStageBufferData
 
AllocationHandle stageBufferAllocationHandle
 
AllocationHandle imageAllocationHandle
 
- Protected Attributes inherited from Engine::Memory
VkDevice logicalDevice
 
MemoryType memoryType
 
VkMemoryRequirements memoryRequirements
 

Constructor & Destructor Documentation

◆ ImageMemory() [1/2]

Engine::ImageMemory::ImageMemory ( VkDevice vkLogicalDevice,
VkImage image,
TextureType TextureType,
VkFormat format,
uint mipLevels )

Pre-allocated image memory(ie. swapchain-image)

◆ ImageMemory() [2/2]

Engine::ImageMemory::ImageMemory ( VkDevice vkLogicalDevice,
const VkImageCreateInfo & createInfo )

◆ ~ImageMemory()

virtual Engine::ImageMemory::~ImageMemory ( )
virtual

Member Function Documentation

◆ allocate()

void Engine::ImageMemory::allocate ( )
virtual

Implements Engine::Memory.

◆ flushBuffer()

void Engine::ImageMemory::flushBuffer ( )

◆ getBuffer()

VkBuffer Engine::ImageMemory::getBuffer ( )
inline

◆ getImage()

VkImage Engine::ImageMemory::getImage ( )
inline

◆ getImageData()

const void * Engine::ImageMemory::getImageData ( )
Returns
Pointer to the allocated image-memory or nullptr if pre-allocated.

◆ getStageBufferData()

const void * Engine::ImageMemory::getStageBufferData ( )
inline

◆ getStageCommandBuffer()

CommandBuffer * Engine::ImageMemory::getStageCommandBuffer ( )

◆ getStageMemoryRequirements()

const VkMemoryRequirements & Engine::ImageMemory::getStageMemoryRequirements ( )
inline

◆ getView()

VkImageView Engine::ImageMemory::getView ( )
inline

◆ setImage()

void Engine::ImageMemory::setImage ( VkImage image,
TextureType textureType,
VkFormat format,
uint mipLevels )

◆ stageComplete()

void Engine::ImageMemory::stageComplete ( )

Member Data Documentation

◆ image

VkImage Engine::ImageMemory::image
protected

◆ imageAllocationHandle

AllocationHandle Engine::ImageMemory::imageAllocationHandle
protected

◆ pImageAllocator

MemoryAllocator* Engine::ImageMemory::pImageAllocator
protected

◆ pStageAllocator

MemoryAllocator* Engine::ImageMemory::pStageAllocator
protected

◆ pStageBufferData

void* Engine::ImageMemory::pStageBufferData
protected

◆ pStageCommandBuffer

CommandBuffer* Engine::ImageMemory::pStageCommandBuffer
protected

◆ stageBuffer

VkBuffer Engine::ImageMemory::stageBuffer
protected

◆ stageBufferAllocationHandle

AllocationHandle Engine::ImageMemory::stageBufferAllocationHandle
protected

◆ stageMemoryRequirements

VkMemoryRequirements Engine::ImageMemory::stageMemoryRequirements
protected

◆ view

VkImageView Engine::ImageMemory::view
protected

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