Package org.lwjgl.openxr
Class XrRenderModelPropertiesFB
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrRenderModelPropertiesFB>
org.lwjgl.openxr.XrRenderModelPropertiesFB
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrRenderModelPropertiesFB
extends org.lwjgl.system.Struct<XrRenderModelPropertiesFB>
implements org.lwjgl.system.NativeResource
The information about the render model.
Description
XrRenderModelPropertiesFB contains information about the render model for a device. XrRenderModelPropertiesFB must be provided when calling GetRenderModelPropertiesFB. The XrRenderModelKeyFB included in the properties is a unique key for each render model that is valid across multiple instances and installs.
If the application decides to cache or save the render model in any way, modelVersion can be used to determine if the render model has changed. The application should then update its cached or saved version.
Valid Usage (Implicit)
- The
XR_FB_render_modelextension must be enabled prior to usingXrRenderModelPropertiesFB typemust beTYPE_RENDER_MODEL_PROPERTIES_FBnextmust beNULLor a valid pointer to the next structure in a structure chain. See also:XrRenderModelCapabilitiesRequestFBmodelNamemust be a null-terminated UTF-8 string whose length is less than or equal toMAX_RENDER_MODEL_NAME_SIZE_FBflagsmust be a valid combination ofXrRenderModelFlagBitsFBvaluesflagsmust not be 0
See Also
Layout
struct XrRenderModelPropertiesFB {
XrStructureType type();
void * next();
uint32_t vendorId();
char modelName()[XR_MAX_RENDER_MODEL_NAME_SIZE_FB];
XrRenderModelKeyFB modelKey();
uint32_t modelVersion();
XrRenderModelFlagsFB flags();
}-
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 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrRenderModelPropertiesFB(ByteBuffer container) Creates aXrRenderModelPropertiesFBinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrRenderModelPropertiesFBcalloc()Returns a newXrRenderModelPropertiesFBinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrRenderModelPropertiesFBcalloc(org.lwjgl.system.MemoryStack stack) Returns a newXrRenderModelPropertiesFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrRenderModelPropertiesFBcreate()Returns a newXrRenderModelPropertiesFBinstance allocated withBufferUtils.create(int capacity) Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated withBufferUtils.static XrRenderModelPropertiesFBcreate(long address) Returns a newXrRenderModelPropertiesFBinstance for the specified memory address.create(long address, int capacity) Create aXrRenderModelPropertiesFB.Bufferinstance at the specified memory.static @Nullable XrRenderModelPropertiesFBcreateSafe(long address) static @Nullable XrRenderModelPropertiesFB.BuffercreateSafe(long address, int capacity) longflags()a bitmask ofXrRenderModelFlagsFB.flags(long value) Sets the specified value to theflags()field.static XrRenderModelPropertiesFBmalloc()Returns a newXrRenderModelPropertiesFBinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated on the specifiedMemoryStack.static XrRenderModelPropertiesFBmalloc(org.lwjgl.system.MemoryStack stack) Returns a newXrRenderModelPropertiesFBinstance allocated on the specifiedMemoryStack.longmodelKey()the unique model key used to load the model inLoadRenderModelFB.modelKey(long value) Sets the specified value to themodelKey()field.the name of the model.modelName(ByteBuffer value) Copies the specified encoded string to themodelName()field.the name of the model.intthe version number of the model.modelVersion(int value) Sets the specified value to themodelVersion()field.longnext()NULLor a pointer to the next structure in a structure chain.next(long value) Sets the specified value to thenext()field.Prepends the specifiedXrRenderModelCapabilitiesRequestFBvalue to thenextchain.static longnflags(long struct) Unsafe version offlags().static voidnflags(long struct, long value) Unsafe version offlags.static longnmodelKey(long struct) Unsafe version ofmodelKey().static voidnmodelKey(long struct, long value) Unsafe version ofmodelKey.static ByteBuffernmodelName(long struct) Unsafe version ofmodelName().static voidnmodelName(long struct, ByteBuffer value) Unsafe version ofmodelName.static StringnmodelNameString(long struct) Unsafe version ofmodelNameString().static intnmodelVersion(long struct) Unsafe version ofmodelVersion().static voidnmodelVersion(long struct, int value) Unsafe version ofmodelVersion.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.static intnvendorId(long struct) Unsafe version ofvendorId().static voidnvendorId(long struct, int value) Unsafe version ofvendorId.set(int type, long next, int vendorId, ByteBuffer modelName, long modelKey, int modelVersion, long flags) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.type(int value) Sets the specified value to thetype()field.Sets theTYPE_RENDER_MODEL_PROPERTIES_FBvalue to thetype()field.intvendorId()the vendor id of the model.vendorId(int value) Sets the specified value to thevendorId()field.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. -
TYPE
public static final int TYPEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
VENDORID
public static final int VENDORIDThe struct member offsets. -
MODELNAME
public static final int MODELNAMEThe struct member offsets. -
MODELKEY
public static final int MODELKEYThe struct member offsets. -
MODELVERSION
public static final int MODELVERSIONThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets.
-
-
Constructor Details
-
XrRenderModelPropertiesFB
Creates aXrRenderModelPropertiesFBinstance 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<XrRenderModelPropertiesFB>
-
type
public int type()theXrStructureTypeof this structure. -
next
public long next()NULLor a pointer to the next structure in a structure chain.XrRenderModelCapabilitiesRequestFBis a structure in this structure chain and should be linked when this structure is passed toGetRenderModelPropertiesFB. -
vendorId
public int vendorId()the vendor id of the model. -
modelName
the name of the model. -
modelNameString
the name of the model. -
modelKey
public long modelKey()the unique model key used to load the model inLoadRenderModelFB. -
modelVersion
public int modelVersion()the version number of the model. -
flags
public long flags()a bitmask ofXrRenderModelFlagsFB. After a successful call toGetRenderModelPropertiesFB, flags must contain the support level of the model and no other support levels. -
type
Sets the specified value to thetype()field. -
type$Default
Sets theTYPE_RENDER_MODEL_PROPERTIES_FBvalue to thetype()field. -
next
Sets the specified value to thenext()field. -
next
Prepends the specifiedXrRenderModelCapabilitiesRequestFBvalue to thenextchain. -
vendorId
Sets the specified value to thevendorId()field. -
modelName
Copies the specified encoded string to themodelName()field. -
modelKey
Sets the specified value to themodelKey()field. -
modelVersion
Sets the specified value to themodelVersion()field. -
flags
Sets the specified value to theflags()field. -
set
public XrRenderModelPropertiesFB set(int type, long next, int vendorId, ByteBuffer modelName, long modelKey, int modelVersion, long flags) 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 newXrRenderModelPropertiesFBinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrRenderModelPropertiesFBinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrRenderModelPropertiesFBinstance allocated withBufferUtils. -
create
Returns a newXrRenderModelPropertiesFBinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrRenderModelPropertiesFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrRenderModelPropertiesFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrRenderModelPropertiesFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrRenderModelPropertiesFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static XrRenderModelPropertiesFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrRenderModelPropertiesFB.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(). -
nvendorId
public static int nvendorId(long struct) Unsafe version ofvendorId(). -
nmodelName
Unsafe version ofmodelName(). -
nmodelNameString
Unsafe version ofmodelNameString(). -
nmodelKey
public static long nmodelKey(long struct) Unsafe version ofmodelKey(). -
nmodelVersion
public static int nmodelVersion(long struct) Unsafe version ofmodelVersion(). -
nflags
public static long nflags(long struct) Unsafe version offlags(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
nvendorId
public static void nvendorId(long struct, int value) Unsafe version ofvendorId. -
nmodelName
Unsafe version ofmodelName. -
nmodelKey
public static void nmodelKey(long struct, long value) Unsafe version ofmodelKey. -
nmodelVersion
public static void nmodelVersion(long struct, int value) Unsafe version ofmodelVersion. -
nflags
public static void nflags(long struct, long value) Unsafe version offlags.
-