Interface VMAHeapBudgetType

All Known Implementing Classes:
VMAHeapBudget

@Immutable public interface VMAHeapBudgetType
The current memory usage and recommended budget for a single memory heap.
See Also:
  • "VmaBudget"
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    long
     
  • Method Details

    • usage

      long usage()
      Returns:
      The current memory usage of the heap, in bytes.
    • budget

      long budget()
      Returns:
      The recommended memory budget for the heap, in bytes. Keeping usage at or below the budget avoids the driver stalling or returning VK_ERROR_OUT_OF_DEVICE_MEMORY.