Class VkSetLatencyMarkerInfoNV

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

public class VkSetLatencyMarkerInfoNV extends org.lwjgl.system.Struct<VkSetLatencyMarkerInfoNV> implements org.lwjgl.system.NativeResource
Structure specifying the parameters of vkSetLatencyMarkerNV.
Valid Usage (Implicit)
See Also

SetLatencyMarkerNV

Layout


 struct VkSetLatencyMarkerInfoNV {
     VkStructureType sType();
     void const * pNext();
     uint64_t presentID();
     VkLatencyMarkerNV marker();
 }
  • 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.
    • PRESENTID

      public static final int PRESENTID
      The struct member offsets.
    • MARKER

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

    • VkSetLatencyMarkerInfoNV

      public VkSetLatencyMarkerInfoNV(ByteBuffer container)
      Creates a VkSetLatencyMarkerInfoNV 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<VkSetLatencyMarkerInfoNV>
    • sType

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

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

      public long presentID()
      an application provided value that is used to associate the timestamp with a vkQueuePresentKHR command using VkPresentIdKHR::pPresentIds for a given present.
    • marker

      public int marker()
      the type of timestamp to be recorded.
    • sType

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

      public VkSetLatencyMarkerInfoNV sType$Default()
    • pNext

      public VkSetLatencyMarkerInfoNV pNext(long value)
      Sets the specified value to the pNext() field.
    • presentID

      public VkSetLatencyMarkerInfoNV presentID(long value)
      Sets the specified value to the presentID() field.
    • marker

      public VkSetLatencyMarkerInfoNV marker(int value)
      Sets the specified value to the marker() field.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static long npresentID(long struct)
      Unsafe version of presentID().
    • nmarker

      public static int nmarker(long struct)
      Unsafe version of marker().
    • 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.
    • npresentID

      public static void npresentID(long struct, long value)
      Unsafe version of presentID.
    • nmarker

      public static void nmarker(long struct, int value)
      Unsafe version of marker.