Class VkPresentTimeGOOGLE

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

public class VkPresentTimeGOOGLE extends org.lwjgl.system.Struct<VkPresentTimeGOOGLE> implements org.lwjgl.system.NativeResource
The earliest time image should be presented.
See Also

VkPresentTimesInfoGOOGLE

Layout


 struct VkPresentTimeGOOGLE {
     uint32_t presentID();
     uint64_t desiredPresentTime();
 }
  • Field Details

    • SIZEOF

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

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

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

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

    • VkPresentTimeGOOGLE

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

      public int presentID()
      an application-provided identification value, that can be used with the results of GetPastPresentationTimingGOOGLE, in order to uniquely identify this present. In order to be useful to the application, it should be unique within some period of time that is meaningful to the application.
    • desiredPresentTime

      public long desiredPresentTime()
      specifies that the image given should not be displayed to the user any earlier than this time. desiredPresentTime is a time in nanoseconds, relative to a monotonically-increasing clock (e.g. CLOCK_MONOTONIC (see clock_gettime(2)) on Android and Linux). A value of zero specifies that the presentation engine may display the image at any time. This is useful when the application desires to provide presentID, but does not need a specific desiredPresentTime.
    • presentID

      public VkPresentTimeGOOGLE presentID(int value)
      Sets the specified value to the presentID() field.
    • desiredPresentTime

      public VkPresentTimeGOOGLE desiredPresentTime(long value)
      Sets the specified value to the desiredPresentTime() field.
    • set

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

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

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

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

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

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

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

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

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

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

      @Deprecated public static VkPresentTimeGOOGLE mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static VkPresentTimeGOOGLE callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static VkPresentTimeGOOGLE mallocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static VkPresentTimeGOOGLE callocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static VkPresentTimeGOOGLE.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static VkPresentTimeGOOGLE.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

      @Deprecated public static VkPresentTimeGOOGLE.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static VkPresentTimeGOOGLE.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc

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

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

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

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

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

      public static long ndesiredPresentTime(long struct)
      Unsafe version of desiredPresentTime().
    • npresentID

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

      public static void ndesiredPresentTime(long struct, long value)
      Unsafe version of desiredPresentTime.