Package org.lwjgl.openvr
Class Compositor_BenchmarkResults
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<Compositor_BenchmarkResults>
org.lwjgl.openvr.Compositor_BenchmarkResults
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class Compositor_BenchmarkResults
extends org.lwjgl.system.Struct<Compositor_BenchmarkResults>
implements org.lwjgl.system.NativeResource
Provides compositor benchmark results to the app.
Layout
struct Compositor_BenchmarkResults {
float m_flMegaPixelsPerSecond();
float m_flHmdRecommendedMegaPixelsPerSecond();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCompositor_BenchmarkResults(ByteBuffer container) Creates aCompositor_BenchmarkResultsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic Compositor_BenchmarkResultscalloc()Returns a newCompositor_BenchmarkResultsinstance allocated withmemCalloc.calloc(int capacity) Returns a newCompositor_BenchmarkResults.Bufferinstance allocated withmemCalloc.calloc(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.create(int capacity) Returns a newCompositor_BenchmarkResults.Bufferinstance allocated withBufferUtils.static Compositor_BenchmarkResultscreate(long address) Returns a newCompositor_BenchmarkResultsinstance for the specified memory address.create(long address, int capacity) Create aCompositor_BenchmarkResults.Bufferinstance at the specified memory.static @Nullable Compositor_BenchmarkResultscreateSafe(long address) static @Nullable Compositor_BenchmarkResults.BuffercreateSafe(long address, int capacity) floatRecommended default MP/s given the HMD resolution, refresh, and panel mask.floatMeasurement of GPU MP/s performed by compositor benchmarkstatic Compositor_BenchmarkResultsmalloc()Returns a newCompositor_BenchmarkResultsinstance allocated withmemAlloc.malloc(int capacity) Returns a newCompositor_BenchmarkResults.Bufferinstance allocated withmemAlloc.malloc(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()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
M_FLMEGAPIXELSPERSECOND
public static final int M_FLMEGAPIXELSPERSECONDThe struct member offsets. -
M_FLHMDRECOMMENDEDMEGAPIXELSPERSECOND
public static final int M_FLHMDRECOMMENDEDMEGAPIXELSPERSECONDThe struct member offsets.
-
-
Constructor Details
-
Compositor_BenchmarkResults
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<Compositor_BenchmarkResults>
-
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
Returns a newCompositor_BenchmarkResultsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCompositor_BenchmarkResultsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCompositor_BenchmarkResultsinstance allocated withBufferUtils. -
create
Returns a newCompositor_BenchmarkResultsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCompositor_BenchmarkResults.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCompositor_BenchmarkResults.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCompositor_BenchmarkResults.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCompositor_BenchmarkResults.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCompositor_BenchmarkResultsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
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:
capacity- the buffer capacitystack- the stack from which to allocate
-
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:
capacity- the buffer capacitystack- the stack from which to allocate
-
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().
-