Class VkDescriptorImageInfo

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • SAMPLER, IMAGEVIEW, IMAGELAYOUT

        The struct member offsets.
    • Constructor Detail

      • VkDescriptorImageInfo

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

        public long sampler()
        Returns the value of the sampler field.
      • imageView

        public long imageView()
        Returns the value of the imageView field.
      • imageLayout

        public int imageLayout()
        Returns the value of the imageLayout field.
      • sampler

        public VkDescriptorImageInfo sampler​(long value)
        Sets the specified value to the sampler field.
      • imageView

        public VkDescriptorImageInfo imageView​(long value)
        Sets the specified value to the imageView field.
      • imageLayout

        public VkDescriptorImageInfo imageLayout​(int value)
        Sets the specified value to the imageLayout field.
      • set

        public VkDescriptorImageInfo set​(long sampler,
                                         long imageView,
                                         int imageLayout)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

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

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

        public static long nsampler​(long struct)
        Unsafe version of sampler().
      • nimageView

        public static long nimageView​(long struct)
        Unsafe version of imageView().
      • nimageLayout

        public static int nimageLayout​(long struct)
        Unsafe version of imageLayout().
      • nsampler

        public static void nsampler​(long struct,
                                    long value)
        Unsafe version of sampler.
      • nimageView

        public static void nimageView​(long struct,
                                      long value)
        Unsafe version of imageView.
      • nimageLayout

        public static void nimageLayout​(long struct,
                                        int value)
        Unsafe version of imageLayout.