Class XrHapticParametricPropertiesEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrHapticParametricPropertiesEXT>
org.lwjgl.openxr.XrHapticParametricPropertiesEXT
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class XrHapticParametricPropertiesEXT
extends Struct<XrHapticParametricPropertiesEXT>
implements NativeResource
struct XrHapticParametricPropertiesEXT {
XrStructureType type;
void * next;
XrDuration idealFrameSubmissionRate;
XrDuration minimumFirstFrameDuration;
float minFrequencyHz;
float maxFrequencyHz;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofXrHapticParametricPropertiesEXTstructs.Nested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface Pointer
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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrHapticParametricPropertiesEXT(ByteBuffer container) Creates aXrHapticParametricPropertiesEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newXrHapticParametricPropertiesEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrHapticParametricPropertiesEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrHapticParametricPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newXrHapticParametricPropertiesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newXrHapticParametricPropertiesEXTinstance allocated withBufferUtils.create(int capacity) Returns a newXrHapticParametricPropertiesEXT.Bufferinstance allocated withBufferUtils.create(long address) Returns a newXrHapticParametricPropertiesEXTinstance for the specified memory address.create(long address, int capacity) Create aXrHapticParametricPropertiesEXT.Bufferinstance at the specified memory.static @Nullable XrHapticParametricPropertiesEXTcreateSafe(long address) static @Nullable XrHapticParametricPropertiesEXT.BuffercreateSafe(long address, int capacity) longidealFrameSubmissionRate(long value) Sets the specified value to theidealFrameSubmissionRatefield.malloc()Returns a newXrHapticParametricPropertiesEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrHapticParametricPropertiesEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrHapticParametricPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newXrHapticParametricPropertiesEXTinstance allocated on the specifiedMemoryStack.floatmaxFrequencyHz(float value) Sets the specified value to themaxFrequencyHzfield.floatminFrequencyHz(float value) Sets the specified value to theminFrequencyHzfield.longminimumFirstFrameDuration(long value) Sets the specified value to theminimumFirstFrameDurationfield.longnext()next(long value) Sets the specified value to thenextfield.static longnidealFrameSubmissionRate(long struct) Unsafe version ofidealFrameSubmissionRate().static voidnidealFrameSubmissionRate(long struct, long value) Unsafe version ofidealFrameSubmissionRate.static floatnmaxFrequencyHz(long struct) Unsafe version ofmaxFrequencyHz().static voidnmaxFrequencyHz(long struct, float value) Unsafe version ofmaxFrequencyHz.static floatnminFrequencyHz(long struct) Unsafe version ofminFrequencyHz().static voidnminFrequencyHz(long struct, float value) Unsafe version ofminFrequencyHz.static longnminimumFirstFrameDuration(long struct) Unsafe version ofminimumFirstFrameDuration().static voidnminimumFirstFrameDuration(long struct, long value) Unsafe version ofminimumFirstFrameDuration.static longnnext(long struct) Unsafe version ofnext().static voidnnext(long struct, long value) Unsafe version ofnext.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.set(int type, long next, long idealFrameSubmissionRate, long minimumFirstFrameDuration, float minFrequencyHz, float maxFrequencyHz) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_HAPTIC_PARAMETRIC_PROPERTIES_EXTvalue to thetypefield.Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface 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. -
TYPE
public static final int TYPEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
IDEALFRAMESUBMISSIONRATE
public static final int IDEALFRAMESUBMISSIONRATEThe struct member offsets. -
MINIMUMFIRSTFRAMEDURATION
public static final int MINIMUMFIRSTFRAMEDURATIONThe struct member offsets. -
MINFREQUENCYHZ
public static final int MINFREQUENCYHZThe struct member offsets. -
MAXFREQUENCYHZ
public static final int MAXFREQUENCYHZThe struct member offsets.
-
-
Constructor Details
-
XrHapticParametricPropertiesEXT
Creates aXrHapticParametricPropertiesEXTinstance 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XrHapticParametricPropertiesEXT>
-
type
- Returns:
- the value of the
typefield.
-
next
- Returns:
- the value of the
nextfield.
-
idealFrameSubmissionRate
- Returns:
- the value of the
idealFrameSubmissionRatefield.
-
minimumFirstFrameDuration
- Returns:
- the value of the
minimumFirstFrameDurationfield.
-
minFrequencyHz
public float minFrequencyHz()- Returns:
- the value of the
minFrequencyHzfield.
-
maxFrequencyHz
public float maxFrequencyHz()- Returns:
- the value of the
maxFrequencyHzfield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_HAPTIC_PARAMETRIC_PROPERTIES_EXTvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
idealFrameSubmissionRate
public XrHapticParametricPropertiesEXT idealFrameSubmissionRate(@NativeType("XrDuration") long value) Sets the specified value to theidealFrameSubmissionRatefield. -
minimumFirstFrameDuration
public XrHapticParametricPropertiesEXT minimumFirstFrameDuration(@NativeType("XrDuration") long value) Sets the specified value to theminimumFirstFrameDurationfield. -
minFrequencyHz
Sets the specified value to theminFrequencyHzfield. -
maxFrequencyHz
Sets the specified value to themaxFrequencyHzfield. -
set
public XrHapticParametricPropertiesEXT set(int type, long next, long idealFrameSubmissionRate, long minimumFirstFrameDuration, float minFrequencyHz, float maxFrequencyHz) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXrHapticParametricPropertiesEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrHapticParametricPropertiesEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrHapticParametricPropertiesEXTinstance allocated withBufferUtils. -
create
Returns a newXrHapticParametricPropertiesEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrHapticParametricPropertiesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrHapticParametricPropertiesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrHapticParametricPropertiesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrHapticParametricPropertiesEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable XrHapticParametricPropertiesEXT.Buffer createSafe(long address, int capacity) -
malloc
Returns a newXrHapticParametricPropertiesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrHapticParametricPropertiesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrHapticParametricPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrHapticParametricPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nnext
public static long nnext(long struct) Unsafe version ofnext(). -
nidealFrameSubmissionRate
public static long nidealFrameSubmissionRate(long struct) Unsafe version ofidealFrameSubmissionRate(). -
nminimumFirstFrameDuration
public static long nminimumFirstFrameDuration(long struct) Unsafe version ofminimumFirstFrameDuration(). -
nminFrequencyHz
public static float nminFrequencyHz(long struct) Unsafe version ofminFrequencyHz(). -
nmaxFrequencyHz
public static float nmaxFrequencyHz(long struct) Unsafe version ofmaxFrequencyHz(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
nidealFrameSubmissionRate
public static void nidealFrameSubmissionRate(long struct, long value) Unsafe version ofidealFrameSubmissionRate. -
nminimumFirstFrameDuration
public static void nminimumFirstFrameDuration(long struct, long value) Unsafe version ofminimumFirstFrameDuration. -
nminFrequencyHz
public static void nminFrequencyHz(long struct, float value) Unsafe version ofminFrequencyHz. -
nmaxFrequencyHz
public static void nmaxFrequencyHz(long struct, float value) Unsafe version ofmaxFrequencyHz.
-