gfx.graal.memory

Undocumented in source.

Members

Enums

MemProps
enum MemProps

Properties of memory allocated by the device

Functions

mapMemory
auto mapMemory(DeviceMemory dm, size_t offset, size_t count)

Map device memory to host visible memory.

retypeSlice
T[] retypeSlice(void[] slice)
const(T)[] retypeSlice(const(void)[] slice)

cast a blob of bytes into a typed slice

untypeSlice
void[] untypeSlice(T[] slice)
const(void)[] untypeSlice(const(T)[] slice)

cast a typed slice into a blob of bytes (same representation; no copy is made)

untypeSlices
void[][] untypeSlices(T[][] slices)
const(void)[][] untypeSlices(const(T)[][] slices)

cast an array of typed slices to another array of blob of bytes an allocation is performed for the top container (the array of arrays) but the underlying data is moved without allocation

Interfaces

DeviceMemory
interface DeviceMemory
Undocumented in source.

Structs

MemoryHeap
struct MemoryHeap
Undocumented in source.
MemoryMap
struct MemoryMap(T)
Undocumented in source.
MemoryProperties
struct MemoryProperties

Structure representing all heaps and types of memory from a device. A device can have different heaps each supporting different types.

MemoryRequirements
struct MemoryRequirements
Undocumented in source.
MemoryType
struct MemoryType
Undocumented in source.

Meta