Class VkSubpassBeginInfoKHR

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class VkSubpassBeginInfoKHR
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying subpass begin info.
    Valid Usage (Implicit)
    See Also

    CmdBeginRenderPass2KHR, CmdNextSubpass2KHR

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • contents – a VkSubpassContents value specifying how the commands in the next subpass will be provided.

    Layout

    
     struct VkSubpassBeginInfoKHR {
         VkStructureType sType;
         void const * pNext;
         VkSubpassContents contents;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, CONTENTS

        The struct member offsets.
    • Constructor Detail

      • VkSubpassBeginInfoKHR

        public VkSubpassBeginInfoKHR​(java.nio.ByteBuffer container)
        Creates a VkSubpassBeginInfoKHR 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()
        Returns the value of the sType field.
      • pNext

        public long pNext()
        Returns the value of the pNext field.
      • contents

        public int contents()
        Returns the value of the contents field.
      • pNext

        public VkSubpassBeginInfoKHR pNext​(long value)
        Sets the specified value to the pNext field.
      • contents

        public VkSubpassBeginInfoKHR contents​(int value)
        Sets the specified value to the contents field.
      • set

        public VkSubpassBeginInfoKHR set​(int sType,
                                         long pNext,
                                         int contents)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

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

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

        public static int nsType​(long struct)
        Unsafe version of sType().
      • npNext

        public static long npNext​(long struct)
        Unsafe version of pNext().
      • ncontents

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

        public static void ncontents​(long struct,
                                     int value)
        Unsafe version of contents.