Package org.lwjgl.openvr
Class Compositor_BenchmarkResults
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.Compositor_BenchmarkResults
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class Compositor_BenchmarkResults extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceProvides compositor benchmark results to the app.Layout
struct Compositor_BenchmarkResults { floatm_flMegaPixelsPerSecond(); floatm_flHmdRecommendedMegaPixelsPerSecond(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCompositor_BenchmarkResults.BufferAn array ofCompositor_BenchmarkResultsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intM_FLHMDRECOMMENDEDMEGAPIXELSPERSECOND
M_FLMEGAPIXELSPERSECONDThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description Compositor_BenchmarkResults(java.nio.ByteBuffer container)Creates aCompositor_BenchmarkResultsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Compositor_BenchmarkResultscalloc()Returns a newCompositor_BenchmarkResultsinstance allocated withmemCalloc.static Compositor_BenchmarkResults.Buffercalloc(int capacity)Returns a newCompositor_BenchmarkResults.Bufferinstance allocated withmemCalloc.static Compositor_BenchmarkResults.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCompositor_BenchmarkResults.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static Compositor_BenchmarkResultscalloc(org.lwjgl.system.MemoryStack stack)Returns a newCompositor_BenchmarkResultsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static Compositor_BenchmarkResultscreate()Returns a newCompositor_BenchmarkResultsinstance allocated withBufferUtils.static Compositor_BenchmarkResults.Buffercreate(int capacity)Returns a newCompositor_BenchmarkResults.Bufferinstance allocated withBufferUtils.static Compositor_BenchmarkResultscreate(long address)Returns a newCompositor_BenchmarkResultsinstance for the specified memory address.static Compositor_BenchmarkResults.Buffercreate(long address, int capacity)Create aCompositor_BenchmarkResults.Bufferinstance at the specified memory.static Compositor_BenchmarkResultscreateSafe(long address)static Compositor_BenchmarkResults.BuffercreateSafe(long address, int capacity)floatm_flHmdRecommendedMegaPixelsPerSecond()Recommended default MP/s given the HMD resolution, refresh, and panel mask.floatm_flMegaPixelsPerSecond()Measurement of GPU MP/s performed by compositor benchmarkstatic Compositor_BenchmarkResultsmalloc()Returns a newCompositor_BenchmarkResultsinstance allocated withmemAlloc.static Compositor_BenchmarkResults.Buffermalloc(int capacity)Returns a newCompositor_BenchmarkResults.Bufferinstance allocated withmemAlloc.static Compositor_BenchmarkResults.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCompositor_BenchmarkResults.Bufferinstance allocated on the specifiedMemoryStack.static Compositor_BenchmarkResultsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newCompositor_BenchmarkResultsinstance allocated on the specifiedMemoryStack.static floatnm_flHmdRecommendedMegaPixelsPerSecond(long struct)Unsafe version ofm_flHmdRecommendedMegaPixelsPerSecond().static floatnm_flMegaPixelsPerSecond(long struct)Unsafe version ofm_flMegaPixelsPerSecond().intsizeof()
-
-
-
Constructor Detail
-
Compositor_BenchmarkResults
public Compositor_BenchmarkResults(java.nio.ByteBuffer container)
Creates aCompositor_BenchmarkResultsinstance 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_flMegaPixelsPerSecond
public float m_flMegaPixelsPerSecond()
Measurement of GPU MP/s performed by compositor benchmark
-
m_flHmdRecommendedMegaPixelsPerSecond
public float m_flHmdRecommendedMegaPixelsPerSecond()
Recommended default MP/s given the HMD resolution, refresh, and panel mask.
-
malloc
public static Compositor_BenchmarkResults malloc()
Returns a newCompositor_BenchmarkResultsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static Compositor_BenchmarkResults calloc()
Returns a newCompositor_BenchmarkResultsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static Compositor_BenchmarkResults create()
Returns a newCompositor_BenchmarkResultsinstance allocated withBufferUtils.
-
create
public static Compositor_BenchmarkResults create(long address)
Returns a newCompositor_BenchmarkResultsinstance for the specified memory address.
-
createSafe
@Nullable public static Compositor_BenchmarkResults createSafe(long address)
-
malloc
public static Compositor_BenchmarkResults.Buffer malloc(int capacity)
Returns a newCompositor_BenchmarkResults.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static Compositor_BenchmarkResults.Buffer calloc(int capacity)
Returns a newCompositor_BenchmarkResults.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static Compositor_BenchmarkResults.Buffer create(int capacity)
Returns a newCompositor_BenchmarkResults.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static Compositor_BenchmarkResults.Buffer create(long address, int capacity)
Create aCompositor_BenchmarkResults.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static Compositor_BenchmarkResults.Buffer createSafe(long address, int capacity)
-
malloc
public static Compositor_BenchmarkResults malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCompositor_BenchmarkResultsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static Compositor_BenchmarkResults calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCompositor_BenchmarkResultsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static Compositor_BenchmarkResults.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCompositor_BenchmarkResults.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static Compositor_BenchmarkResults.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCompositor_BenchmarkResults.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nm_flMegaPixelsPerSecond
public static float nm_flMegaPixelsPerSecond(long struct)
Unsafe version ofm_flMegaPixelsPerSecond().
-
nm_flHmdRecommendedMegaPixelsPerSecond
public static float nm_flHmdRecommendedMegaPixelsPerSecond(long struct)
Unsafe version ofm_flHmdRecommendedMegaPixelsPerSecond().
-
-