Class XrHapticParametricVibrationEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrHapticParametricVibrationEXT>
org.lwjgl.openxr.XrHapticParametricVibrationEXT
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class XrHapticParametricVibrationEXT
extends Struct<XrHapticParametricVibrationEXT>
implements NativeResource
struct XrHapticParametricVibrationEXT {
XrStructureType type;
void const * next;
uint32_t amplitudePointCount;
XrHapticParametricPointEXT const * amplitudePoints;
uint32_t frequencyPointCount;
XrHapticParametricPointEXT const * frequencyPoints;
uint32_t transientCount;
XrHapticParametricTransientEXT const * transients;
float minFrequencyHz;
float maxFrequencyHz;
XrHapticParametricStreamFrameTypeEXT streamFrameType;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofXrHapticParametricVibrationEXTstructs.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 member offsets.static final intThe struct member offsets.static final intThe struct size 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.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrHapticParametricVibrationEXT(ByteBuffer container) Creates aXrHapticParametricVibrationEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintSets the address of the specifiedXrHapticParametricPointEXT.Bufferto theamplitudePointsfield.calloc()Returns a newXrHapticParametricVibrationEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrHapticParametricVibrationEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrHapticParametricVibrationEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newXrHapticParametricVibrationEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newXrHapticParametricVibrationEXTinstance allocated withBufferUtils.create(int capacity) Returns a newXrHapticParametricVibrationEXT.Bufferinstance allocated withBufferUtils.create(long address) Returns a newXrHapticParametricVibrationEXTinstance for the specified memory address.create(long address, int capacity) Create aXrHapticParametricVibrationEXT.Bufferinstance at the specified memory.create(XrHapticBaseHeader value) Downcasts the specifiedXrHapticBaseHeaderinstance toXrHapticParametricVibrationEXT.create(XrHapticBaseHeader.Buffer value) Downcasts the specifiedXrHapticBaseHeader.Bufferinstance toXrHapticParametricVibrationEXT.Buffer.static @Nullable XrHapticParametricVibrationEXTcreateSafe(long address) static @Nullable XrHapticParametricVibrationEXT.BuffercreateSafe(long address, int capacity) intfrequencyPointCount(int value) Sets the specified value to thefrequencyPointCountfield.@Nullable XrHapticParametricPointEXT.BufferfrequencyPoints(@Nullable XrHapticParametricPointEXT.Buffer value) Sets the address of the specifiedXrHapticParametricPointEXT.Bufferto thefrequencyPointsfield.malloc()Returns a newXrHapticParametricVibrationEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrHapticParametricVibrationEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrHapticParametricVibrationEXT.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newXrHapticParametricVibrationEXTinstance allocated on the specifiedMemoryStack.floatmaxFrequencyHz(float value) Sets the specified value to themaxFrequencyHzfield.floatminFrequencyHz(float value) Sets the specified value to theminFrequencyHzfield.static intnamplitudePointCount(long struct) Unsafe version ofamplitudePointCount().static voidnamplitudePointCount(long struct, int value) Sets the specified value to theamplitudePointCountfield of the specifiedstruct.namplitudePoints(long struct) Unsafe version ofamplitudePoints().static voidnamplitudePoints(long struct, XrHapticParametricPointEXT.Buffer value) Unsafe version ofamplitudePoints.longnext()next(long value) Sets the specified value to thenextfield.static intnfrequencyPointCount(long struct) Unsafe version offrequencyPointCount().static voidnfrequencyPointCount(long struct, int value) Sets the specified value to thefrequencyPointCountfield of the specifiedstruct.static @Nullable XrHapticParametricPointEXT.BuffernfrequencyPoints(long struct) Unsafe version offrequencyPoints().static voidnfrequencyPoints(long struct, @Nullable XrHapticParametricPointEXT.Buffer value) Unsafe version offrequencyPoints.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 longnnext(long struct) Unsafe version ofnext().static voidnnext(long struct, long value) Unsafe version ofnext.static intnstreamFrameType(long struct) Unsafe version ofstreamFrameType().static voidnstreamFrameType(long struct, int value) Unsafe version ofstreamFrameType.static intntransientCount(long struct) Unsafe version oftransientCount().static voidntransientCount(long struct, int value) Sets the specified value to thetransientCountfield of the specifiedstruct.static @Nullable XrHapticParametricTransientEXT.Bufferntransients(long struct) Unsafe version oftransients().static voidntransients(long struct, @Nullable XrHapticParametricTransientEXT.Buffer value) Unsafe version oftransients.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.set(int type, long next, XrHapticParametricPointEXT.Buffer amplitudePoints, int frequencyPointCount, @Nullable XrHapticParametricPointEXT.Buffer frequencyPoints, int transientCount, @Nullable XrHapticParametricTransientEXT.Buffer transients, float minFrequencyHz, float maxFrequencyHz, int streamFrameType) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intstreamFrameType(int value) Sets the specified value to thestreamFrameTypefield.inttransientCount(int value) Sets the specified value to thetransientCountfield.@Nullable XrHapticParametricTransientEXT.Buffertransients(@Nullable XrHapticParametricTransientEXT.Buffer value) Sets the address of the specifiedXrHapticParametricTransientEXT.Bufferto thetransientsfield.inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_HAPTIC_PARAMETRIC_VIBRATION_EXTvalue to thetypefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
AMPLITUDEPOINTCOUNT
public static final int AMPLITUDEPOINTCOUNTThe struct member offsets. -
AMPLITUDEPOINTS
public static final int AMPLITUDEPOINTSThe struct member offsets. -
FREQUENCYPOINTCOUNT
public static final int FREQUENCYPOINTCOUNTThe struct member offsets. -
FREQUENCYPOINTS
public static final int FREQUENCYPOINTSThe struct member offsets. -
TRANSIENTCOUNT
public static final int TRANSIENTCOUNTThe struct member offsets. -
TRANSIENTS
public static final int TRANSIENTSThe struct member offsets. -
MINFREQUENCYHZ
public static final int MINFREQUENCYHZThe struct member offsets. -
MAXFREQUENCYHZ
public static final int MAXFREQUENCYHZThe struct member offsets. -
STREAMFRAMETYPE
public static final int STREAMFRAMETYPEThe struct member offsets.
-
-
Constructor Details
-
XrHapticParametricVibrationEXT
Creates aXrHapticParametricVibrationEXTinstance 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<XrHapticParametricVibrationEXT>
-
type
- Returns:
- the value of the
typefield.
-
next
- Returns:
- the value of the
nextfield.
-
amplitudePointCount
- Returns:
- the value of the
amplitudePointCountfield.
-
amplitudePoints
@NativeType("XrHapticParametricPointEXT const *") public XrHapticParametricPointEXT.Buffer amplitudePoints()- Returns:
- a
XrHapticParametricPointEXT.Bufferview of the struct array pointed to by theamplitudePointsfield.
-
frequencyPointCount
- Returns:
- the value of the
frequencyPointCountfield.
-
frequencyPoints
@NativeType("XrHapticParametricPointEXT const *") public @Nullable XrHapticParametricPointEXT.Buffer frequencyPoints()- Returns:
- a
XrHapticParametricPointEXT.Bufferview of the struct array pointed to by thefrequencyPointsfield.
-
transientCount
- Returns:
- the value of the
transientCountfield.
-
transients
@NativeType("XrHapticParametricTransientEXT const *") public @Nullable XrHapticParametricTransientEXT.Buffer transients()- Returns:
- a
XrHapticParametricTransientEXT.Bufferview of the struct array pointed to by thetransientsfield.
-
minFrequencyHz
public float minFrequencyHz()- Returns:
- the value of the
minFrequencyHzfield.
-
maxFrequencyHz
public float maxFrequencyHz()- Returns:
- the value of the
maxFrequencyHzfield.
-
streamFrameType
- Returns:
- the value of the
streamFrameTypefield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_HAPTIC_PARAMETRIC_VIBRATION_EXTvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
amplitudePoints
public XrHapticParametricVibrationEXT amplitudePoints(@NativeType("XrHapticParametricPointEXT const *") XrHapticParametricPointEXT.Buffer value) Sets the address of the specifiedXrHapticParametricPointEXT.Bufferto theamplitudePointsfield. -
frequencyPointCount
Sets the specified value to thefrequencyPointCountfield. -
frequencyPoints
public XrHapticParametricVibrationEXT frequencyPoints(@NativeType("XrHapticParametricPointEXT const *") @Nullable XrHapticParametricPointEXT.Buffer value) Sets the address of the specifiedXrHapticParametricPointEXT.Bufferto thefrequencyPointsfield. -
transientCount
Sets the specified value to thetransientCountfield. -
transients
public XrHapticParametricVibrationEXT transients(@NativeType("XrHapticParametricTransientEXT const *") @Nullable XrHapticParametricTransientEXT.Buffer value) Sets the address of the specifiedXrHapticParametricTransientEXT.Bufferto thetransientsfield. -
minFrequencyHz
Sets the specified value to theminFrequencyHzfield. -
maxFrequencyHz
Sets the specified value to themaxFrequencyHzfield. -
streamFrameType
public XrHapticParametricVibrationEXT streamFrameType(@NativeType("XrHapticParametricStreamFrameTypeEXT") int value) Sets the specified value to thestreamFrameTypefield. -
set
public XrHapticParametricVibrationEXT set(int type, long next, XrHapticParametricPointEXT.Buffer amplitudePoints, int frequencyPointCount, @Nullable XrHapticParametricPointEXT.Buffer frequencyPoints, int transientCount, @Nullable XrHapticParametricTransientEXT.Buffer transients, float minFrequencyHz, float maxFrequencyHz, int streamFrameType) 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 newXrHapticParametricVibrationEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrHapticParametricVibrationEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrHapticParametricVibrationEXTinstance allocated withBufferUtils. -
create
Returns a newXrHapticParametricVibrationEXTinstance for the specified memory address. -
createSafe
-
create
Downcasts the specifiedXrHapticBaseHeaderinstance toXrHapticParametricVibrationEXT. -
malloc
Returns a newXrHapticParametricVibrationEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrHapticParametricVibrationEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrHapticParametricVibrationEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrHapticParametricVibrationEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable XrHapticParametricVibrationEXT.Buffer createSafe(long address, int capacity) -
create
Downcasts the specifiedXrHapticBaseHeader.Bufferinstance toXrHapticParametricVibrationEXT.Buffer. -
malloc
Returns a newXrHapticParametricVibrationEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrHapticParametricVibrationEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrHapticParametricVibrationEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrHapticParametricVibrationEXT.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(). -
namplitudePointCount
public static int namplitudePointCount(long struct) Unsafe version ofamplitudePointCount(). -
namplitudePoints
Unsafe version ofamplitudePoints(). -
nfrequencyPointCount
public static int nfrequencyPointCount(long struct) Unsafe version offrequencyPointCount(). -
nfrequencyPoints
Unsafe version offrequencyPoints(). -
ntransientCount
public static int ntransientCount(long struct) Unsafe version oftransientCount(). -
ntransients
Unsafe version oftransients(). -
nminFrequencyHz
public static float nminFrequencyHz(long struct) Unsafe version ofminFrequencyHz(). -
nmaxFrequencyHz
public static float nmaxFrequencyHz(long struct) Unsafe version ofmaxFrequencyHz(). -
nstreamFrameType
public static int nstreamFrameType(long struct) Unsafe version ofstreamFrameType(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
namplitudePointCount
public static void namplitudePointCount(long struct, int value) Sets the specified value to theamplitudePointCountfield of the specifiedstruct. -
namplitudePoints
Unsafe version ofamplitudePoints. -
nfrequencyPointCount
public static void nfrequencyPointCount(long struct, int value) Sets the specified value to thefrequencyPointCountfield of the specifiedstruct. -
nfrequencyPoints
Unsafe version offrequencyPoints. -
ntransientCount
public static void ntransientCount(long struct, int value) Sets the specified value to thetransientCountfield of the specifiedstruct. -
ntransients
Unsafe version oftransients. -
nminFrequencyHz
public static void nminFrequencyHz(long struct, float value) Unsafe version ofminFrequencyHz. -
nmaxFrequencyHz
public static void nmaxFrequencyHz(long struct, float value) Unsafe version ofmaxFrequencyHz. -
nstreamFrameType
public static void nstreamFrameType(long struct, int value) Unsafe version ofstreamFrameType. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-