Class VkPhysicalDeviceMemoryBudgetPropertiesEXT

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class VkPhysicalDeviceMemoryBudgetPropertiesEXT
    extends Struct
    implements NativeResource
    Structure specifying physical device memory budget and usage.
    Description

    The values returned in this structure are not invariant. The heapBudget and heapUsage values must be zero for array elements greater than or equal to VkPhysicalDeviceMemoryProperties::memoryHeapCount. The heapBudget value must be non-zero for array elements less than VkPhysicalDeviceMemoryProperties::memoryHeapCount. The heapBudget value must be less than or equal to VkMemoryHeap::size for each heap.

    Valid Usage (Implicit)

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • heapBudget[VK_MAX_MEMORY_HEAPS] – an array of memory budgets, with one element for each memory heap. A heap’s budget is a rough estimate of how much memory the process can allocate from that heap before allocations may fail or cause performance degradation. The budget includes any currently allocated device memory.
    • heapUsage[VK_MAX_MEMORY_HEAPS] – an array of memory usage, with one element for each memory heap. A heap’s usage is an estimate of how much memory the process is currently using in that heap.

    Layout

    
     struct VkPhysicalDeviceMemoryBudgetPropertiesEXT {
         VkStructureType sType;
         void * pNext;
         VkDeviceSize heapBudget[VK_MAX_MEMORY_HEAPS];
         VkDeviceSize heapUsage[VK_MAX_MEMORY_HEAPS];
     }