Class DriverDirectModeFrameTiming

  • All Implemented Interfaces:
    Pointer

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

    Member documentation

    • m_nSize – sSet to sizeof( DriverDirectMode_FrameTiming )
    • m_nNumFramePresents – number of times frame was presented
    • m_nNumMisPresented – number of times frame was presented on a vsync other than it was originally predicted to
    • m_nNumDroppedFrames – number of additional times previous frame was scanned out (i.e. compositor missed vsync)

    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 Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • M_NSIZE, M_NNUMFRAMEPRESENTS, M_NNUMMISPRESENTED, M_NNUMDROPPEDFRAMES, M_NREPROJECTIONFLAGS

        The struct member offsets.
    • Constructor Detail

      • DriverDirectModeFrameTiming

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

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • m_nSize

        public int m_nSize()
        Returns the value of the m_nSize field.
      • m_nNumFramePresents

        public int m_nNumFramePresents()
        Returns the value of the m_nNumFramePresents field.
      • m_nNumMisPresented

        public int m_nNumMisPresented()
        Returns the value of the m_nNumMisPresented field.
      • m_nNumDroppedFrames

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

        public int m_nReprojectionFlags()
        Returns the value of the m_nReprojectionFlags field.
      • 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().