Class VkMemoryType

  • All Implemented Interfaces:

    public class VkMemoryType
    extends Struct
    Structure specifying memory type.

    Member documentation

    • propertyFlags – a bitmask of VkMemoryPropertyFlagBits of properties for this memory type.
    • heapIndex – describes which memory heap this memory type corresponds to, and must be less than memoryHeapCount from the VkPhysicalDeviceMemoryProperties structure.


     struct VkMemoryType {
         VkMemoryPropertyFlags propertyFlags;
         uint32_t heapIndex;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • VkMemoryType

        public VkMemoryType​(java.nio.ByteBuffer container)
        Creates a VkMemoryType 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.

    • Method Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • propertyFlags

        public int propertyFlags()
        Returns the value of the propertyFlags field.
      • heapIndex

        public int heapIndex()
        Returns the value of the heapIndex field.
      • create

        public static VkMemoryType create​(long address)
        Returns a new VkMemoryType instance for the specified memory address.
      • createSafe

        public static VkMemoryType createSafe​(long address)
        Like create, but returns null if address is NULL.
      • create

        public static VkMemoryType.Buffer create​(long address,
                                                 int capacity)
        Create a VkMemoryType.Buffer instance at the specified memory.
        address - the memory address
        capacity - the buffer capacity
      • createSafe

        public static VkMemoryType.Buffer createSafe​(long address,
                                                     int capacity)
        Like create, but returns null if address is NULL.
      • npropertyFlags

        public static int npropertyFlags​(long struct)
        Unsafe version of propertyFlags().
      • nheapIndex

        public static int nheapIndex​(long struct)
        Unsafe version of heapIndex().