Class VkMemoryPriorityAllocateInfoEXT

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

    public class VkMemoryPriorityAllocateInfoEXT
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.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;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, PRIORITY

        The struct member offsets.
    • Constructor Detail

      • VkMemoryPriorityAllocateInfoEXT

        public VkMemoryPriorityAllocateInfoEXT​(java.nio.ByteBuffer container)
        Creates a VkMemoryPriorityAllocateInfoEXT instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.