#include <stdint.h>Go to the source code of this file.
Classes | |
| struct | DeviceMemory |
Typedefs | |
| typedef struct DeviceMemory | DeviceMemory |
| typedef struct DeviceMemoryAllocator | DeviceMemoryAllocator |
Enumerations | |
| enum | DMAResult { DMA_SUCCESS = 0, DMA_NOT_ENOUGH_MEMORY } |
Functions | |
| DeviceMemoryAllocator * | create_device_memory_allocator (VkDevice device) |
| DMAResult | allocate_device_memory (DeviceMemoryAllocator *allocator, DeviceMemory *device_memory) |
| void | free_device_memory (DeviceMemoryAllocator *allocator, const DeviceMemory *device_memory) |
| void | destroy_device_memory_allocator (DeviceMemoryAllocator *allocator) |
| typedef struct DeviceMemory DeviceMemory |
| typedef struct DeviceMemoryAllocator DeviceMemoryAllocator |
Definition at line 37 of file device_memory_allocator.h.
| enum DMAResult |
| Enumerator | |
|---|---|
| DMA_SUCCESS | |
| DMA_NOT_ENOUGH_MEMORY | |
Definition at line 22 of file device_memory_allocator.h.
| DMAResult allocate_device_memory | ( | DeviceMemoryAllocator * | allocator, |
| DeviceMemory * | device_memory | ||
| ) |
Definition at line 60 of file device_memory_allocator.c.
Referenced by create_invalid_texture(), and vkpt_textures_end_registration().
| DeviceMemoryAllocator* create_device_memory_allocator | ( | VkDevice | device | ) |
| void destroy_device_memory_allocator | ( | DeviceMemoryAllocator * | allocator | ) |
| void free_device_memory | ( | DeviceMemoryAllocator * | allocator, |
| const DeviceMemory * | device_memory | ||
| ) |
Definition at line 100 of file device_memory_allocator.c.
Referenced by destroy_invalid_texture(), destroy_tex_images(), IMG_ReloadAll(), and textures_destroy_unused_set().