Class VkMemoryRequirements2

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

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

        The struct member offsets.
    • Constructor Detail

      • VkMemoryRequirements2

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

        public int sType()
        Returns the value of the sType field.
      • pNext

        public long pNext()
        Returns the value of the pNext field.
      • pNext

        public VkMemoryRequirements2 pNext​(long value)
        Sets the specified value to the pNext field.
      • set

        public VkMemoryRequirements2 set​(int sType,
                                         long pNext)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

        public static VkMemoryRequirements2 mallocStack()
        Returns a new VkMemoryRequirements2 instance allocated on the thread-local MemoryStack.
      • callocStack

        public static VkMemoryRequirements2 callocStack()
        Returns a new VkMemoryRequirements2 instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

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

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

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

        public static VkMemoryRequirements2.Buffer callocStack​(int capacity,
                                                               org.lwjgl.system.MemoryStack stack)
        Returns a new VkMemoryRequirements2.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
      • nsType

        public static int nsType​(long struct)
        Unsafe version of sType().
      • npNext

        public static long npNext​(long struct)
        Unsafe version of pNext().
      • nsType

        public static void nsType​(long struct,
                                  int value)
        Unsafe version of sType.
      • npNext

        public static void npNext​(long struct,
                                  long value)
        Unsafe version of pNext.