Vulkan Memory Allocator
|
Classes | |
struct | VmaMemoryRequirements |
Typedefs | |
typedef enum VmaMemoryUsage | VmaMemoryUsage |
typedef enum VmaMemoryRequirementFlagBits | VmaMemoryRequirementFlagBits |
Flags to be passed as VmaMemoryRequirements::flags. More... | |
typedef VkFlags | VmaMemoryRequirementFlags |
typedef struct VmaMemoryRequirements | VmaMemoryRequirements |
Enumerations | |
enum | VmaMemoryUsage { VMA_MEMORY_USAGE_UNKNOWN = 0, VMA_MEMORY_USAGE_GPU_ONLY = 1, VMA_MEMORY_USAGE_CPU_ONLY = 2, VMA_MEMORY_USAGE_CPU_TO_GPU = 3, VMA_MEMORY_USAGE_GPU_TO_CPU = 4, VMA_MEMORY_USAGE_MAX_ENUM = 0x7FFFFFFF } |
enum | VmaMemoryRequirementFlagBits { VMA_MEMORY_REQUIREMENT_OWN_MEMORY_BIT = 0x00000001, VMA_MEMORY_REQUIREMENT_NEVER_ALLOCATE_BIT = 0x00000002, VMA_MEMORY_REQUIREMENT_PERSISTENT_MAP_BIT = 0x00000004, VMA_MEMORY_REQUIREMENT_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF } |
Flags to be passed as VmaMemoryRequirements::flags. More... | |
Functions | |
VkResult | vmaFindMemoryTypeIndex (VmaAllocator allocator, uint32_t memoryTypeBits, const VmaMemoryRequirements *pMemoryRequirements, uint32_t *pMemoryTypeIndex) |
typedef enum VmaMemoryRequirementFlagBits VmaMemoryRequirementFlagBits |
Flags to be passed as VmaMemoryRequirements::flags.
typedef VkFlags VmaMemoryRequirementFlags |
typedef struct VmaMemoryRequirements VmaMemoryRequirements |
typedef enum VmaMemoryUsage VmaMemoryUsage |
Flags to be passed as VmaMemoryRequirements::flags.
enum VmaMemoryUsage |
VkResult vmaFindMemoryTypeIndex | ( | VmaAllocator | allocator, |
uint32_t | memoryTypeBits, | ||
const VmaMemoryRequirements * | pMemoryRequirements, | ||
uint32_t * | pMemoryTypeIndex | ||
) |
This algorithm tries to find a memory type that: