Class VkPresentTimeGOOGLE

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

    public class VkPresentTimeGOOGLE
    extends Struct
    implements NativeResource
    The earliest time image should be presented.

    Member documentation

    • 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 – 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.

    Layout

    
     struct VkPresentTimeGOOGLE {
         uint32_t presentID;
         uint64_t desiredPresentTime;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • PRESENTID, DESIREDPRESENTTIME

        The struct member offsets.
    • Constructor Detail

      • VkPresentTimeGOOGLE

        public VkPresentTimeGOOGLE​(java.nio.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.