Nebula
Loading...
Searching...
No Matches
vkmemory.h File Reference
#include "util/array.h"
#include "coregraphics/memory.h"

Go to the source code of this file.

Namespaces

namespace  Vulkan
 Vulkan implementation of GPU acceleration structure.
 

Functions

CoreGraphics::Alloc Vulkan::AllocateMemory (const VkDevice dev, const VkImage &img, CoreGraphics::MemoryPoolType type)
 allocate memory for an image
 
CoreGraphics::Alloc Vulkan::AllocateMemory (const VkDevice dev, const VkBuffer &buf, CoreGraphics::MemoryPoolType type, uint alignment=1)
 allocate memory for a buffer
 
CoreGraphics::Alloc Vulkan::AllocateMemory (const VkDevice dev, VkMemoryRequirements reqs, VkDeviceSize allocSize)
 allocate memory for sparse memory
 
void Vulkan::Flush (const VkDevice dev, const CoreGraphics::Alloc &alloc, IndexT offset, SizeT size)
 flush a mapped memory region
 
void Vulkan::Invalidate (const VkDevice dev, const CoreGraphics::Alloc &alloc, IndexT offset, SizeT size)
 invalidate a mapped memory region
 
VkResult Vulkan::GetMemoryType (uint32_t bits, VkMemoryPropertyFlags flags, uint32_t &index)
 get vulkan memory type based on resource requirements and wanted memory properties