Class VkCheckpointDataNV

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

    public class VkCheckpointDataNV
    extends Struct
    implements NativeResource
    return structure for command buffer checkpoint data.
    Valid Usage (Implicit)

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

    See Also

    GetQueueCheckpointDataNV

    Member documentation

    • sType – the type of this structure
    • pNextNULL or a pointer to an extension-specific structure.
    • stage – indicates which pipeline stage the checkpoint marker data refers to.
    • pCheckpointMarker – contains the value of the last checkpoint marker executed in the stage that stage refers to.

    Layout

    
     struct VkCheckpointDataNV {
         VkStructureType sType;
         void * pNext;
         VkPipelineStageFlagBits stage;
         void * pCheckpointMarker;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, STAGE, PCHECKPOINTMARKER

        The struct member offsets.
    • Constructor Detail

      • VkCheckpointDataNV

        public VkCheckpointDataNV​(java.nio.ByteBuffer container)
        Creates a VkCheckpointDataNV 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()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • sType

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

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

        public int stage()
        Returns the value of the stage field.
      • pCheckpointMarker

        public long pCheckpointMarker()
        Returns the value of the pCheckpointMarker field.
      • sType

        public VkCheckpointDataNV sType​(int value)
        Sets the specified value to the sType field.
      • pNext

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

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

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

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

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

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

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

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

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

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

        public static VkCheckpointDataNV callocStack​(MemoryStack stack)
        Returns a new VkCheckpointDataNV 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().
      • nstage

        public static int 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.