Class VkMemoryRequirements

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • SIZE, ALIGNMENT, MEMORYTYPEBITS

        The struct member offsets.
    • Constructor Detail

      • VkMemoryRequirements

        public VkMemoryRequirements​(java.nio.ByteBuffer container)
        Creates a VkMemoryRequirements 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()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • size

        public long size()
        the size, in bytes, of the memory allocation required for the resource.
      • alignment

        public long alignment()
        the alignment, in bytes, of the offset within the allocation required for the resource.
      • memoryTypeBits

        public int memoryTypeBits()
        a bitmask and contains one bit set for every supported memory type for the resource. Bit i is set if and only if the memory type i in the VkPhysicalDeviceMemoryProperties structure for the physical device is supported for the resource.
      • malloc

        public static VkMemoryRequirements malloc()
        Returns a new VkMemoryRequirements instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static VkMemoryRequirements calloc()
        Returns a new VkMemoryRequirements instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static VkMemoryRequirements create()
        Returns a new VkMemoryRequirements instance allocated with BufferUtils.
      • create

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

        @Nullable
        public static VkMemoryRequirements createSafe​(long address)
        Like create, but returns null if address is NULL.
      • malloc

        public static VkMemoryRequirements malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkMemoryRequirements instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static VkMemoryRequirements calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkMemoryRequirements instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • malloc

        public static VkMemoryRequirements.Buffer malloc​(int capacity,
                                                         org.lwjgl.system.MemoryStack stack)
        Returns a new VkMemoryRequirements.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • calloc

        public static VkMemoryRequirements.Buffer calloc​(int capacity,
                                                         org.lwjgl.system.MemoryStack stack)
        Returns a new VkMemoryRequirements.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nsize

        public static long nsize​(long struct)
        Unsafe version of size().
      • nalignment

        public static long nalignment​(long struct)
        Unsafe version of alignment().
      • nmemoryTypeBits

        public static int nmemoryTypeBits​(long struct)
        Unsafe version of memoryTypeBits().