Nebula
Loading...
Searching...
No Matches
memory.h File Reference

Detailed Description

Graphics memory interface.

Go to the source code of this file.

Classes

struct  CoreGraphics::Alloc
struct  CoreGraphics::AllocRange
struct  CoreGraphics::MemoryHeap
struct  CoreGraphics::MemoryPool

Namespaces

namespace  CoreGraphics
 Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.

Enumerations

enum  CoreGraphics::MemoryPoolType {
  CoreGraphics::MemoryPool_DeviceLocal , CoreGraphics::MemoryPool_HostLocal , CoreGraphics::MemoryPool_HostCached , CoreGraphics::MemoryPool_DeviceAndHost ,
  CoreGraphics::NumMemoryPoolTypes
}

Functions

void CoreGraphics::SetupMemoryPools (DeviceSize deviceLocalMemory, DeviceSize hostLocalMemory, DeviceSize hostToDeviceMemory, DeviceSize deviceToHostMemory)
 setup memory pools
void CoreGraphics::DiscardMemoryPools (VkDevice dev)
 discard memory pools
void CoreGraphics::FreeMemory (const CoreGraphics::Alloc &alloc)
 free memory
void * CoreGraphics::GetMappedMemory (const CoreGraphics::Alloc &alloc)
 get mapped memory pointer