Class VkSubpassBeginInfo

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
Direct Known Subclasses:
VkSubpassBeginInfoKHR

public class VkSubpassBeginInfo extends Struct<VkSubpassBeginInfo> implements NativeResource

 struct VkSubpassBeginInfo {
     VkStructureType sType;
     void const * pNext;
     VkSubpassContents contents;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • CONTENTS

      public static final int CONTENTS
      The struct member offsets.
  • Constructor Details

    • VkSubpassBeginInfo

      public VkSubpassBeginInfo(ByteBuffer container)
      Creates a VkSubpassBeginInfo 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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<VkSubpassBeginInfo>
    • 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.
    • sType

      public VkSubpassBeginInfo sType(int value)
      Sets the specified value to the sType field.
    • sType$Default

      public VkSubpassBeginInfo sType$Default()
      Sets the STRUCTURE_TYPE_SUBPASS_BEGIN_INFO value to the sType field.
    • pNext

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

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

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

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

      public static VkSubpassBeginInfo.Buffer malloc(int capacity)
      Returns a new VkSubpassBeginInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VkSubpassBeginInfo.Buffer calloc(int capacity)
      Returns a new VkSubpassBeginInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkSubpassBeginInfo.Buffer create(int capacity)
      Returns a new VkSubpassBeginInfo.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkSubpassBeginInfo.Buffer create(long address, int capacity)
      Create a VkSubpassBeginInfo.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VkSubpassBeginInfo.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

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

      public static VkSubpassBeginInfo calloc(MemoryStack stack)
      Returns a new VkSubpassBeginInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static VkSubpassBeginInfo.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new VkSubpassBeginInfo.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static VkSubpassBeginInfo.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkSubpassBeginInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      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().
    • 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.