Class VkBindBufferMemoryInfo

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, BUFFER, MEMORY, MEMORYOFFSET

        The struct member offsets.
    • Constructor Detail

      • VkBindBufferMemoryInfo

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

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

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

        public long buffer()
        Returns the value of the buffer field.
      • memory

        public long memory()
        Returns the value of the memory field.
      • memoryOffset

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

        public VkBindBufferMemoryInfo memoryOffset​(long value)
        Sets the specified value to the memoryOffset field.
      • set

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

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

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

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

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

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

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

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

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

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

        public static long nbuffer​(long struct)
        Unsafe version of buffer().
      • nmemory

        public static long nmemory​(long struct)
        Unsafe version of memory().
      • nmemoryOffset

        public static long nmemoryOffset​(long struct)
        Unsafe version of memoryOffset().
      • 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.
      • nbuffer

        public static void nbuffer​(long struct,
                                   long value)
        Unsafe version of buffer.
      • nmemory

        public static void nmemory​(long struct,
                                   long value)
        Unsafe version of memory.
      • nmemoryOffset

        public static void nmemoryOffset​(long struct,
                                         long value)
        Unsafe version of memoryOffset.