Package org.lwjgl.openvr
Class DriverDirectModeFrameTiming
- All Implemented Interfaces:
Pointer
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;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionDriverDirectModeFrameTiming
(ByteBuffer container) Creates aDriverDirectModeFrameTiming
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic DriverDirectModeFrameTiming
create
(long address) Returns a newDriverDirectModeFrameTiming
instance for the specified memory address.create
(long address, int capacity) Create aDriverDirectModeFrameTiming.Buffer
instance at the specified memory.static DriverDirectModeFrameTiming
createSafe
(long address) createSafe
(long address, int capacity) int
number of additional times previous frame was scanned out (i.e.int
number of times frame was presentedint
number of times frame was presented on a vsync other than it was originally predicted toint
int
m_nSize()
sSet tosizeof( DriverDirectMode_FrameTiming )
static int
nm_nNumDroppedFrames
(long struct) Unsafe version ofm_nNumDroppedFrames()
.static int
nm_nNumFramePresents
(long struct) Unsafe version ofm_nNumFramePresents()
.static int
nm_nNumMisPresented
(long struct) Unsafe version ofm_nNumMisPresented()
.static int
nm_nReprojectionFlags
(long struct) Unsafe version ofm_nReprojectionFlags()
.static int
nm_nSize
(long struct) Unsafe version ofm_nSize()
.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
M_NSIZE
public static final int M_NSIZEThe struct member offsets. -
M_NNUMFRAMEPRESENTS
public static final int M_NNUMFRAMEPRESENTSThe struct member offsets. -
M_NNUMMISPRESENTED
public static final int M_NNUMMISPRESENTEDThe struct member offsets. -
M_NNUMDROPPEDFRAMES
public static final int M_NNUMDROPPEDFRAMESThe struct member offsets. -
M_NREPROJECTIONFLAGS
public static final int M_NREPROJECTIONFLAGSThe struct member offsets.
-
-
Constructor Details
-
DriverDirectModeFrameTiming
Creates aDriverDirectModeFrameTiming
instance at the current position of the specifiedByteBuffer
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
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<DriverDirectModeFrameTiming>
-
m_nSize
public int m_nSize()sSet tosizeof( 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
Returns a newDriverDirectModeFrameTiming
instance for the specified memory address. -
createSafe
-
create
Create aDriverDirectModeFrameTiming.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
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()
.
-