Class VkImageCreateInfo

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, FLAGS, IMAGETYPE, FORMAT, EXTENT, MIPLEVELS, ARRAYLAYERS, SAMPLES, TILING, USAGE, SHARINGMODE, QUEUEFAMILYINDEXCOUNT, PQUEUEFAMILYINDICES, INITIALLAYOUT

        The struct member offsets.
    • Constructor Detail

      • VkImageCreateInfo

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

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

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

        public VkImageCreateInfo extent​(java.util.function.Consumer<VkExtent3D> consumer)
        Passes the extent field to the specified Consumer.
      • mipLevels

        public int mipLevels()
        Returns the value of the mipLevels field.
      • arrayLayers

        public int arrayLayers()
        Returns the value of the arrayLayers field.
      • samples

        public int samples()
        Returns the value of the samples field.
      • tiling

        public int tiling()
        Returns the value of the tiling 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.
      • initialLayout

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

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

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

        public VkImageCreateInfo flags​(int value)
        Sets the specified value to the flags field.
      • imageType

        public VkImageCreateInfo imageType​(int value)
        Sets the specified value to the imageType field.
      • format

        public VkImageCreateInfo format​(int value)
        Sets the specified value to the format field.
      • mipLevels

        public VkImageCreateInfo mipLevels​(int value)
        Sets the specified value to the mipLevels field.
      • arrayLayers

        public VkImageCreateInfo arrayLayers​(int value)
        Sets the specified value to the arrayLayers field.
      • samples

        public VkImageCreateInfo samples​(int value)
        Sets the specified value to the samples field.
      • tiling

        public VkImageCreateInfo tiling​(int value)
        Sets the specified value to the tiling field.
      • usage

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

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

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

        public VkImageCreateInfo initialLayout​(int value)
        Sets the specified value to the initialLayout field.
      • set

        public VkImageCreateInfo set​(int sType,
                                     long pNext,
                                     int flags,
                                     int imageType,
                                     int format,
                                     VkExtent3D extent,
                                     int mipLevels,
                                     int arrayLayers,
                                     int samples,
                                     int tiling,
                                     int usage,
                                     int sharingMode,
                                     @Nullable
                                     java.nio.IntBuffer pQueueFamilyIndices,
                                     int initialLayout)
        Initializes this struct with the specified values.
      • createSafe

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

        @Nullable
        public static VkImageCreateInfo.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().
      • nimageType

        public static int nimageType​(long struct)
        Unsafe version of imageType().
      • nformat

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

        public static int nmipLevels​(long struct)
        Unsafe version of mipLevels().
      • narrayLayers

        public static int narrayLayers​(long struct)
        Unsafe version of arrayLayers().
      • nsamples

        public static int nsamples​(long struct)
        Unsafe version of samples().
      • ntiling

        public static int ntiling​(long struct)
        Unsafe version of tiling().
      • 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.
      • ninitialLayout

        public static int ninitialLayout​(long struct)
        Unsafe version of initialLayout().
      • 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.
      • nimageType

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

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

        public static void nextent​(long struct,
                                   VkExtent3D value)
        Unsafe version of extent.
      • nmipLevels

        public static void nmipLevels​(long struct,
                                      int value)
        Unsafe version of mipLevels.
      • narrayLayers

        public static void narrayLayers​(long struct,
                                        int value)
        Unsafe version of arrayLayers.
      • nsamples

        public static void nsamples​(long struct,
                                    int value)
        Unsafe version of samples.
      • ntiling

        public static void ntiling​(long struct,
                                   int value)
        Unsafe version of tiling.
      • 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.
      • ninitialLayout

        public static void ninitialLayout​(long struct,
                                          int value)
        Unsafe version of initialLayout.
      • 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