Class VkCheckpointData2NV

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkCheckpointData2NV>
org.lwjgl.vulkan.VkCheckpointData2NV
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkCheckpointData2NV extends org.lwjgl.system.Struct<VkCheckpointData2NV> implements org.lwjgl.system.NativeResource
Return structure for command buffer checkpoint data.
Valid Usage (Implicit)

The stages at which a checkpoint marker can be executed are implementation-defined and can be queried by calling GetPhysicalDeviceQueueFamilyProperties2.

See Also

GetQueueCheckpointData2NV

Layout


 struct VkCheckpointData2NV {
     VkStructureType sType();
     void * pNext();
     VkPipelineStageFlags2 stage();
     void * pCheckpointMarker();
 }
  • 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.
    • STAGE

      public static final int STAGE
      The struct member offsets.
    • PCHECKPOINTMARKER

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

    • VkCheckpointData2NV

      public VkCheckpointData2NV(ByteBuffer container)
      Creates a VkCheckpointData2NV 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<VkCheckpointData2NV>
    • sType

      public int sType()
      a VkStructureType value identifying this structure.
    • pNext

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

      public long stage()
      indicates a single pipeline stage which the checkpoint marker data refers to.
    • pCheckpointMarker

      public long pCheckpointMarker()
      contains the value of the last checkpoint marker executed in the stage that stage refers to.
    • sType

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

      public VkCheckpointData2NV sType$Default()
      Sets the STRUCTURE_TYPE_CHECKPOINT_DATA_2_NV value to the sType() field.
    • pNext

      public VkCheckpointData2NV pNext(long value)
      Sets the specified value to the pNext() field.
    • set

      public VkCheckpointData2NV set(int sType, long pNext)
      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 VkCheckpointData2NV malloc()
      Returns a new VkCheckpointData2NV instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static VkCheckpointData2NV.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new VkCheckpointData2NV.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().
    • nstage

      public static long nstage(long struct)
      Unsafe version of stage().
    • npCheckpointMarker

      public static long npCheckpointMarker(long struct)
      Unsafe version of pCheckpointMarker().
    • 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.