Class VkBufferViewCreateInfo

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, FLAGS, BUFFER, FORMAT, OFFSET, RANGE

        The struct member offsets.
    • Constructor Detail

      • VkBufferViewCreateInfo

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

        public int flags()
        Returns the value of the flags field.
      • buffer

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

        public int format()
        Returns the value of the format field.
      • offset

        public long offset()
        Returns the value of the offset field.
      • range

        public long range()
        Returns the value of the range field.
      • set

        public VkBufferViewCreateInfo set​(int sType,
                                          long pNext,
                                          int flags,
                                          long buffer,
                                          int format,
                                          long offset,
                                          long range)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

        public static VkBufferViewCreateInfo callocStack​(MemoryStack stack)
        Returns a new VkBufferViewCreateInfo 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().
      • nflags

        public static int nflags​(long struct)
        Unsafe version of flags().
      • nbuffer

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

        public static int nformat​(long struct)
        Unsafe version of format().
      • noffset

        public static long noffset​(long struct)
        Unsafe version of offset().
      • nrange

        public static long nrange​(long struct)
        Unsafe version of range().
      • 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.
      • nflags

        public static void nflags​(long struct,
                                  int value)
        Unsafe version of flags.
      • nbuffer

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

        public static void nformat​(long struct,
                                   int value)
        Unsafe version of format.
      • noffset

        public static void noffset​(long struct,
                                   long value)
        Unsafe version of offset.
      • nrange

        public static void nrange​(long struct,
                                  long value)
        Unsafe version of range.