Class VkRenderPassAttachmentBeginInfo

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
    Direct Known Subclasses:
    VkRenderPassAttachmentBeginInfoKHR

    public class VkRenderPassAttachmentBeginInfo
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying images to be used as framebuffer attachments.
    Valid Usage
    • Each element of pAttachments must only specify a single mip level
    • Each element of pAttachments must have been created with the identity swizzle
    • Each element of pAttachments must have been created with VkImageViewCreateInfo::viewType not equal to IMAGE_VIEW_TYPE_3D
    Valid Usage (Implicit)

    Layout

    
     struct VkRenderPassAttachmentBeginInfo {
         VkStructureType sType();
         void const * pNext();
         uint32_t attachmentCount();
         VkImageView const * pAttachments();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, ATTACHMENTCOUNT, PATTACHMENTS

        The struct member offsets.
    • Constructor Detail

      • VkRenderPassAttachmentBeginInfo

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

        public int sType()
        the type of this structure.
      • pNext

        public long pNext()
        NULL or a pointer to a structure extending this structure.
      • attachmentCount

        public int attachmentCount()
        the number of attachments.
      • pAttachments

        @Nullable
        public java.nio.LongBuffer pAttachments()
        a pointer to an array of VkImageView handles, each of which will be used as the corresponding attachment in the render pass instance.
      • set

        public VkRenderPassAttachmentBeginInfo set​(int sType,
                                                   long pNext,
                                                   @Nullable
                                                   java.nio.LongBuffer pAttachments)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

        public static VkRenderPassAttachmentBeginInfo calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkRenderPassAttachmentBeginInfo 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().
      • nattachmentCount

        public static int nattachmentCount​(long struct)
        Unsafe version of attachmentCount().
      • npAttachments

        @Nullable
        public static java.nio.LongBuffer npAttachments​(long struct)
        Unsafe version of pAttachments.
      • 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.
      • nattachmentCount

        public static void nattachmentCount​(long struct,
                                            int value)
        Sets the specified value to the attachmentCount field of the specified struct.
      • npAttachments

        public static void npAttachments​(long struct,
                                         @Nullable
                                         java.nio.LongBuffer value)
        Unsafe version of pAttachments.
      • validate

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