Class VkBufferCreateInfo

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, FLAGS, SIZE, USAGE, SHARINGMODE, QUEUEFAMILYINDEXCOUNT, PQUEUEFAMILYINDICES

        The struct member offsets.
    • Constructor Detail

      • VkBufferCreateInfo

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

        public long size()
        Returns the value of the size field.
      • usage

        public int usage()
        Returns the value of the usage field.
      • sharingMode

        public int sharingMode()
        Returns the value of the sharingMode field.
      • queueFamilyIndexCount

        public int queueFamilyIndexCount()
        Returns the value of the queueFamilyIndexCount field.
      • pQueueFamilyIndices

        @Nullable
        public java.nio.IntBuffer pQueueFamilyIndices()
        Returns a IntBuffer view of the data pointed to by the pQueueFamilyIndices field.
      • sType

        public VkBufferCreateInfo sType​(int value)
        Sets the specified value to the sType field.
      • pNext

        public VkBufferCreateInfo pNext​(long value)
        Sets the specified value to the pNext field.
      • flags

        public VkBufferCreateInfo flags​(int value)
        Sets the specified value to the flags field.
      • size

        public VkBufferCreateInfo size​(long value)
        Sets the specified value to the size field.
      • usage

        public VkBufferCreateInfo usage​(int value)
        Sets the specified value to the usage field.
      • sharingMode

        public VkBufferCreateInfo sharingMode​(int value)
        Sets the specified value to the sharingMode field.
      • pQueueFamilyIndices

        public VkBufferCreateInfo pQueueFamilyIndices​(@Nullable
                                                      java.nio.IntBuffer value)
        Sets the address of the specified IntBuffer to the pQueueFamilyIndices field.
      • set

        public VkBufferCreateInfo set​(int sType,
                                      long pNext,
                                      int flags,
                                      long size,
                                      int usage,
                                      int sharingMode,
                                      @Nullable
                                      java.nio.IntBuffer pQueueFamilyIndices)
        Initializes this struct with the specified values.
      • createSafe

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

        @Nullable
        public static VkBufferCreateInfo.Buffer createSafe​(long address,
                                                           int capacity)
        Like create, but returns null if address is NULL.
      • 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().
      • nsize

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

        public static int nusage​(long struct)
        Unsafe version of usage().
      • nsharingMode

        public static int nsharingMode​(long struct)
        Unsafe version of sharingMode().
      • nqueueFamilyIndexCount

        public static int nqueueFamilyIndexCount​(long struct)
        Unsafe version of queueFamilyIndexCount().
      • npQueueFamilyIndices

        @Nullable
        public static java.nio.IntBuffer npQueueFamilyIndices​(long struct)
        Unsafe version of pQueueFamilyIndices.
      • 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.
      • nsize

        public static void nsize​(long struct,
                                 long value)
        Unsafe version of size.
      • nusage

        public static void nusage​(long struct,
                                  int value)
        Unsafe version of usage.
      • nsharingMode

        public static void nsharingMode​(long struct,
                                        int value)
        Unsafe version of sharingMode.
      • nqueueFamilyIndexCount

        public static void nqueueFamilyIndexCount​(long struct,
                                                  int value)
        Sets the specified value to the queueFamilyIndexCount field of the specified struct.
      • npQueueFamilyIndices

        public static void npQueueFamilyIndices​(long struct,
                                                @Nullable
                                                java.nio.IntBuffer value)
        Unsafe version of pQueueFamilyIndices.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate
      • validate

        public static void validate​(long array,
                                    int count)
        Calls validate(long) for each struct contained in the specified struct array.
        Parameters:
        array - the struct array to validate
        count - the number of structs in array