struct
AllocationRequirementsThis struct is the primary item submitted to allocator methods for resource creation.
Contents
- Reference
Public static variables
- static VkBool32 noNewAllocations
- Defaults to false.
Public variables
- VkBool32 privateMemory
- True if whatever allocation this belongs to should be in its own device memory object.
- VkMemoryPropertyFlags requiredFlags
- The memory properties that are absolutely required by the item you are allocating for.
- VkMemoryPropertyFlags preferredFlags
- Additional flags that would be nice/useful to have, but are not required.
- bool prefersDedicatedKHR
- Set if this allocation benefits from a private/unique VkDeviceMemory instance, but doesn't require it.
- bool requiresDedicatedKHR
- This allocation requires a unique VkDeviceMemory instance, and will fail if we're unable to meet this requirement.
Variable documentation
static VkBool32 vpr:: AllocationRequirements:: noNewAllocations
Defaults to false.
If true, no new allocations are created beyond the set created upon initilization of the allocator system.
VkBool32 vpr:: AllocationRequirements:: privateMemory
True if whatever allocation this belongs to should be in its own device memory object.
Don't use this too often, of course.
VkMemoryPropertyFlags vpr:: AllocationRequirements:: preferredFlags
Additional flags that would be nice/useful to have, but are not required.
An attempt to meet these will be made, but not meeting them won't be considered a failure.