Package org.lwjgl.openvr
Class DriverDirectModeFrameTiming
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.DriverDirectModeFrameTiming
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class DriverDirectModeFrameTiming extends org.lwjgl.system.StructFrame timing data provided by direct mode drivers.Member documentation
m_nSize– sSet tosizeof( DriverDirectMode_FrameTiming )m_nNumFramePresents– number of times frame was presentedm_nNumMisPresented– number of times frame was presented on a vsync other than it was originally predicted tom_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; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDriverDirectModeFrameTiming.BufferAn array ofDriverDirectModeFrameTimingstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intM_NNUMDROPPEDFRAMES
M_NNUMFRAMEPRESENTS
M_NNUMMISPRESENTED
M_NREPROJECTIONFLAGS
M_NSIZEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description DriverDirectModeFrameTiming(java.nio.ByteBuffer container)Creates aDriverDirectModeFrameTiminginstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DriverDirectModeFrameTimingcreate(long address)Returns a newDriverDirectModeFrameTiminginstance for the specified memory address.static DriverDirectModeFrameTiming.Buffercreate(long address, int capacity)Create aDriverDirectModeFrameTiming.Bufferinstance at the specified memory.static DriverDirectModeFrameTimingcreateSafe(long address)static DriverDirectModeFrameTiming.BuffercreateSafe(long address, int capacity)intm_nNumDroppedFrames()Returns the value of them_nNumDroppedFramesfield.intm_nNumFramePresents()Returns the value of them_nNumFramePresentsfield.intm_nNumMisPresented()Returns the value of them_nNumMisPresentedfield.intm_nReprojectionFlags()Returns the value of them_nReprojectionFlagsfield.intm_nSize()Returns the value of them_nSizefield.static intnm_nNumDroppedFrames(long struct)Unsafe version ofm_nNumDroppedFrames().static intnm_nNumFramePresents(long struct)Unsafe version ofm_nNumFramePresents().static intnm_nNumMisPresented(long struct)Unsafe version ofm_nNumMisPresented().static intnm_nReprojectionFlags(long struct)Unsafe version ofm_nReprojectionFlags().static intnm_nSize(long struct)Unsafe version ofm_nSize().intsizeof()
-
-
-
Constructor Detail
-
DriverDirectModeFrameTiming
public DriverDirectModeFrameTiming(java.nio.ByteBuffer container)
Creates aDriverDirectModeFrameTiminginstance at the current position of the specifiedByteBuffercontainer. 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()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
m_nSize
public int m_nSize()
Returns the value of them_nSizefield.
-
m_nNumFramePresents
public int m_nNumFramePresents()
Returns the value of them_nNumFramePresentsfield.
-
m_nNumMisPresented
public int m_nNumMisPresented()
Returns the value of them_nNumMisPresentedfield.
-
m_nNumDroppedFrames
public int m_nNumDroppedFrames()
Returns the value of them_nNumDroppedFramesfield.
-
m_nReprojectionFlags
public int m_nReprojectionFlags()
Returns the value of them_nReprojectionFlagsfield.
-
create
public static DriverDirectModeFrameTiming create(long address)
Returns a newDriverDirectModeFrameTiminginstance for the specified memory address.
-
createSafe
@Nullable public static DriverDirectModeFrameTiming createSafe(long address)
-
create
public static DriverDirectModeFrameTiming.Buffer create(long address, int capacity)
Create aDriverDirectModeFrameTiming.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static DriverDirectModeFrameTiming.Buffer createSafe(long address, int capacity)
-
nm_nSize
public static int nm_nSize(long struct)
Unsafe version ofm_nSize().
-
nm_nNumFramePresents
public static int nm_nNumFramePresents(long struct)
Unsafe version ofm_nNumFramePresents().
-
nm_nNumMisPresented
public static int nm_nNumMisPresented(long struct)
Unsafe version ofm_nNumMisPresented().
-
nm_nNumDroppedFrames
public static int nm_nNumDroppedFrames(long struct)
Unsafe version ofm_nNumDroppedFrames().
-
nm_nReprojectionFlags
public static int nm_nReprojectionFlags(long struct)
Unsafe version ofm_nReprojectionFlags().
-
-