Class VkPresentTimingInfoEXT

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkPresentTimingInfoEXT extends Struct<VkPresentTimingInfoEXT> implements NativeResource
struct VkPresentTimingInfoEXT {
    VkStructureType sType;
    void const * pNext;
    VkPresentTimingInfoFlagsEXT flags;
    uint64_t targetTime;
    uint64_t timeDomainId;
    VkPresentStageFlagsEXT presentStageQueries;
    VkPresentStageFlagsEXT targetTimeDomainPresentStage;
}
  • 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.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
    • TARGETTIME

      public static final int TARGETTIME
      The struct member offsets.
    • TIMEDOMAINID

      public static final int TIMEDOMAINID
      The struct member offsets.
    • PRESENTSTAGEQUERIES

      public static final int PRESENTSTAGEQUERIES
      The struct member offsets.
    • TARGETTIMEDOMAINPRESENTSTAGE

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

    • VkPresentTimingInfoEXT

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

      @NativeType("VkStructureType") public int sType()
      Returns:
      the value of the sType field.
    • pNext

      @NativeType("void const *") public long pNext()
      Returns:
      the value of the pNext field.
    • flags

      @NativeType("VkPresentTimingInfoFlagsEXT") public int flags()
      Returns:
      the value of the flags field.
    • targetTime

      @NativeType("uint64_t") public long targetTime()
      Returns:
      the value of the targetTime field.
    • timeDomainId

      @NativeType("uint64_t") public long timeDomainId()
      Returns:
      the value of the timeDomainId field.
    • presentStageQueries

      @NativeType("VkPresentStageFlagsEXT") public int presentStageQueries()
      Returns:
      the value of the presentStageQueries field.
    • targetTimeDomainPresentStage

      @NativeType("VkPresentStageFlagsEXT") public int targetTimeDomainPresentStage()
      Returns:
      the value of the targetTimeDomainPresentStage field.
    • sType

      public VkPresentTimingInfoEXT sType(@NativeType("VkStructureType") int value)
      Sets the specified value to the sType field.
    • sType$Default

      public VkPresentTimingInfoEXT sType$Default()
      Sets the STRUCTURE_TYPE_PRESENT_TIMING_INFO_EXT value to the sType field.
    • pNext

      public VkPresentTimingInfoEXT pNext(@NativeType("void const *") long value)
      Sets the specified value to the pNext field.
    • flags

      public VkPresentTimingInfoEXT flags(@NativeType("VkPresentTimingInfoFlagsEXT") int value)
      Sets the specified value to the flags field.
    • targetTime

      public VkPresentTimingInfoEXT targetTime(@NativeType("uint64_t") long value)
      Sets the specified value to the targetTime field.
    • timeDomainId

      public VkPresentTimingInfoEXT timeDomainId(@NativeType("uint64_t") long value)
      Sets the specified value to the timeDomainId field.
    • presentStageQueries

      public VkPresentTimingInfoEXT presentStageQueries(@NativeType("VkPresentStageFlagsEXT") int value)
      Sets the specified value to the presentStageQueries field.
    • targetTimeDomainPresentStage

      public VkPresentTimingInfoEXT targetTimeDomainPresentStage(@NativeType("VkPresentStageFlagsEXT") int value)
      Sets the specified value to the targetTimeDomainPresentStage field.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static VkPresentTimingInfoEXT.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkPresentTimingInfoEXT.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().
    • nflags

      public static int nflags(long struct)
      Unsafe version of flags().
    • ntargetTime

      public static long ntargetTime(long struct)
      Unsafe version of targetTime().
    • ntimeDomainId

      public static long ntimeDomainId(long struct)
      Unsafe version of timeDomainId().
    • npresentStageQueries

      public static int npresentStageQueries(long struct)
      Unsafe version of presentStageQueries().
    • ntargetTimeDomainPresentStage

      public static int ntargetTimeDomainPresentStage(long struct)
    • 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.
    • nflags

      public static void nflags(long struct, int value)
      Unsafe version of flags.
    • ntargetTime

      public static void ntargetTime(long struct, long value)
      Unsafe version of targetTime.
    • ntimeDomainId

      public static void ntimeDomainId(long struct, long value)
      Unsafe version of timeDomainId.
    • npresentStageQueries

      public static void npresentStageQueries(long struct, int value)
      Unsafe version of presentStageQueries.
    • ntargetTimeDomainPresentStage

      public static void ntargetTimeDomainPresentStage(long struct, int value)
      Unsafe version of targetTimeDomainPresentStage.