Class DriverDirectModeFrameTiming

All Implemented Interfaces:
Pointer

public class DriverDirectModeFrameTiming extends Struct<DriverDirectModeFrameTiming>
Frame timing data provided by direct mode drivers.

Layout


 struct DriverDirectMode_FrameTiming {
     uint32_t m_nSize();
     uint32_t m_nNumFramePresents();
     uint32_t m_nNumMisPresented();
     uint32_t m_nNumDroppedFrames();
     uint32_t m_nReprojectionFlags;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int M_NSIZE
      The struct member offsets.
    • M_NNUMFRAMEPRESENTS

      public static final int M_NNUMFRAMEPRESENTS
      The struct member offsets.
    • M_NNUMMISPRESENTED

      public static final int M_NNUMMISPRESENTED
      The struct member offsets.
    • M_NNUMDROPPEDFRAMES

      public static final int M_NNUMDROPPEDFRAMES
      The struct member offsets.
    • M_NREPROJECTIONFLAGS

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

    • DriverDirectModeFrameTiming

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

      public int m_nSize()
      sSet to sizeof( DriverDirectMode_FrameTiming )
    • m_nNumFramePresents

      public int m_nNumFramePresents()
      number of times frame was presented
    • m_nNumMisPresented

      public int m_nNumMisPresented()
      number of times frame was presented on a vsync other than it was originally predicted to
    • m_nNumDroppedFrames

      public int m_nNumDroppedFrames()
      number of additional times previous frame was scanned out (i.e. compositor missed vsync)
    • m_nReprojectionFlags

      public int m_nReprojectionFlags()
      Returns:
      the value of the m_nReprojectionFlags field.
    • create

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

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

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

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

      public static int nm_nSize(long struct)
      Unsafe version of m_nSize().
    • nm_nNumFramePresents

      public static int nm_nNumFramePresents(long struct)
      Unsafe version of m_nNumFramePresents().
    • nm_nNumMisPresented

      public static int nm_nNumMisPresented(long struct)
      Unsafe version of m_nNumMisPresented().
    • nm_nNumDroppedFrames

      public static int nm_nNumDroppedFrames(long struct)
      Unsafe version of m_nNumDroppedFrames().
    • nm_nReprojectionFlags

      public static int nm_nReprojectionFlags(long struct)
      Unsafe version of m_nReprojectionFlags().