Class VkMemoryPriorityAllocateInfoEXT

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

    public class VkMemoryPriorityAllocateInfoEXT
    extends Struct
    implements NativeResource
    Specify a memory allocation priority.
    Description

    Memory allocations with higher priority may be more likely to stay in device-local memory when the system is under memory pressure.

    If this structure is not included, it is as if the priority value were 0.5.

    Valid Usage
    • priority must be between 0 and 1, inclusive
    Valid Usage (Implicit)

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • priority – a floating-point value between 0 and 1, indicating the priority of the allocation relative to other memory allocations. Larger values are higher priority. The granularity of the priorities is implementation-dependent.

    Layout

    
     struct VkMemoryPriorityAllocateInfoEXT {
         VkStructureType sType;
         void const * pNext;
         float priority;
     }