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.Struct
Frame 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 class
DriverDirectModeFrameTiming.Buffer
An array ofDriverDirectModeFrameTiming
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
M_NNUMDROPPEDFRAMES
M_NNUMFRAMEPRESENTS
M_NNUMMISPRESENTED
M_NREPROJECTIONFLAGS
M_NSIZEThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description DriverDirectModeFrameTiming(java.nio.ByteBuffer container)
Creates aDriverDirectModeFrameTiming
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DriverDirectModeFrameTiming
create(long address)
Returns a newDriverDirectModeFrameTiming
instance for the specified memory address.static DriverDirectModeFrameTiming.Buffer
create(long address, int capacity)
Create aDriverDirectModeFrameTiming.Buffer
instance at the specified memory.static DriverDirectModeFrameTiming
createSafe(long address)
static DriverDirectModeFrameTiming.Buffer
createSafe(long address, int capacity)
int
m_nNumDroppedFrames()
Returns the value of them_nNumDroppedFrames
field.int
m_nNumFramePresents()
Returns the value of them_nNumFramePresents
field.int
m_nNumMisPresented()
Returns the value of them_nNumMisPresented
field.int
m_nReprojectionFlags()
Returns the value of them_nReprojectionFlags
field.int
m_nSize()
Returns the value of them_nSize
field.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()
-
-
-
Constructor Detail
-
DriverDirectModeFrameTiming
public DriverDirectModeFrameTiming(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
m_nSize
public int m_nSize()
Returns the value of them_nSize
field.
-
m_nNumFramePresents
public int m_nNumFramePresents()
Returns the value of them_nNumFramePresents
field.
-
m_nNumMisPresented
public int m_nNumMisPresented()
Returns the value of them_nNumMisPresented
field.
-
m_nNumDroppedFrames
public int m_nNumDroppedFrames()
Returns the value of them_nNumDroppedFrames
field.
-
m_nReprojectionFlags
public int m_nReprojectionFlags()
Returns the value of them_nReprojectionFlags
field.
-
create
public static DriverDirectModeFrameTiming create(long address)
Returns a newDriverDirectModeFrameTiming
instance 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.Buffer
instance 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()
.
-
-