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.
XR_FB_render_model extension must be enabled prior to using XrRenderModelPropertiesFBtype must be TYPE_RENDER_MODEL_PROPERTIES_FBnext must be NULL or a valid pointer to the next structure in a structure chainmodelName must be a null-terminated UTF-8 string whose length is less than or equal to MAX_RENDER_MODEL_NAME_SIZE_FBflags must be a valid combination of XrRenderModelFlagBitsFB valuesflags must not be 0
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;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrRenderModelPropertiesFB.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | MODELKEY
The struct member offsets. |
| public static final int | MODELNAME
The struct member offsets. |
| public static final int | MODELVERSION
The struct member offsets. |
| public static final int | NEXT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TYPE
The struct member offsets. |
| public static final int | VENDORID
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrRenderModelPropertiesFB(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static XrRenderModelPropertiesFB | |
| public static XrRenderModelPropertiesFB. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrRenderModelPropertiesFB | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrRenderModelPropertiesFB. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected XrRenderModelPropertiesFB | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static XrRenderModelPropertiesFB | |
| public static XrRenderModelPropertiesFB | create(long address)
Returns a new |
| public static XrRenderModelPropertiesFB. | create(int
the buffer capacity capacity)Returns a new |
| public static XrRenderModelPropertiesFB. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrRenderModelPropertiesFB | |
| public static XrRenderModelPropertiesFB. | |
| public long | |
| public XrRenderModelPropertiesFB | |
| public static XrRenderModelPropertiesFB | |
| public static XrRenderModelPropertiesFB. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrRenderModelPropertiesFB | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrRenderModelPropertiesFB. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public long | |
| public XrRenderModelPropertiesFB | |
| public ByteBuffer | |
| public XrRenderModelPropertiesFB | |
| public String | |
| public int | |
| public XrRenderModelPropertiesFB | |
| public long | |
| public XrRenderModelPropertiesFB | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static ByteBuffer | |
| public static void | |
| public static String | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public XrRenderModelPropertiesFB | set(int type, long next, int vendorId, ByteBuffer modelName, long modelKey, int modelVersion, long flags)
Initializes this struct with the specified values. |
| public XrRenderModelPropertiesFB | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public XrRenderModelPropertiesFB | |
| public XrRenderModelPropertiesFB | |
| public int | |
| public XrRenderModelPropertiesFB |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| FLAGS | back to summary |
|---|---|
| public static final int FLAGS The struct member offsets. | |
| MODELKEY | back to summary |
|---|---|
| public static final int MODELKEY The struct member offsets. | |
| MODELNAME | back to summary |
|---|---|
| public static final int MODELNAME The struct member offsets. | |
| MODELVERSION | back to summary |
|---|---|
| public static final int MODELVERSION The struct member offsets. | |
| NEXT | back to summary |
|---|---|
| public static final int NEXT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TYPE | back to summary |
|---|---|
| public static final int TYPE The struct member offsets. | |
| VENDORID | back to summary |
|---|---|
| public static final int VENDORID The struct member offsets. | |
| XrRenderModelPropertiesFB | back to summary |
|---|---|
| protected XrRenderModelPropertiesFB(long address, ByteBuffer container) | |
| XrRenderModelPropertiesFB | back to summary |
|---|---|
| public XrRenderModelPropertiesFB(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static XrRenderModelPropertiesFB calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static XrRenderModelPropertiesFB. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrRenderModelPropertiesFB calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrRenderModelPropertiesFB. Returns a new
| |
| create | back to summary |
|---|---|
| protected XrRenderModelPropertiesFB create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static XrRenderModelPropertiesFB create() Returns a new | |
| create | back to summary |
|---|---|
| public static XrRenderModelPropertiesFB create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static XrRenderModelPropertiesFB. Returns a new
| |
| create | back to summary |
|---|---|
| public static XrRenderModelPropertiesFB. Create a
| |
| createSafe | back to summary |
|---|---|
| public static XrRenderModelPropertiesFB createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static XrRenderModelPropertiesFB. Like
| |
| flags | back to summary |
|---|---|
| public long flags() a bitmask of
| |
| flags | back to summary |
|---|---|
| public XrRenderModelPropertiesFB flags(long value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static XrRenderModelPropertiesFB malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static XrRenderModelPropertiesFB. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrRenderModelPropertiesFB malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrRenderModelPropertiesFB. Returns a new
| |
| modelKey | back to summary |
|---|---|
| public long modelKey() the unique model key used to load the model in
| |
| modelKey | back to summary |
|---|---|
| public XrRenderModelPropertiesFB modelKey(long value) Sets the specified value to the | |
| modelName | back to summary |
|---|---|
| public ByteBuffer modelName() the name of the model.
| |
| modelName | back to summary |
|---|---|
| public XrRenderModelPropertiesFB modelName(ByteBuffer value) Copies the specified encoded string to the | |
| modelNameString | back to summary |
|---|---|
| public String modelNameString() the name of the model.
| |
| modelVersion | back to summary |
|---|---|
| public int modelVersion() the version number of the model.
| |
| modelVersion | back to summary |
|---|---|
| public XrRenderModelPropertiesFB modelVersion(int value) Sets the specified value to the | |
| next | back to summary |
|---|---|
| public long next()
| |
| next | back to summary |
|---|---|
| public XrRenderModelPropertiesFB next(long value) Sets the specified value to the | |
| nflags | back to summary |
|---|---|
| public static long nflags(long struct) Unsafe version of | |
| nflags | back to summary |
|---|---|
| public static void nflags(long struct, long value) Unsafe version of | |
| nmodelKey | back to summary |
|---|---|
| public static long nmodelKey(long struct) Unsafe version of | |
| nmodelKey | back to summary |
|---|---|
| public static void nmodelKey(long struct, long value) Unsafe version of | |
| nmodelName | back to summary |
|---|---|
| public static ByteBuffer nmodelName(long struct) Unsafe version of | |
| nmodelName | back to summary |
|---|---|
| public static void nmodelName(long struct, ByteBuffer value) Unsafe version of | |
| nmodelNameString | back to summary |
|---|---|
| public static String nmodelNameString(long struct) Unsafe version of | |
| nmodelVersion | back to summary |
|---|---|
| public static int nmodelVersion(long struct) Unsafe version of | |
| nmodelVersion | back to summary |
|---|---|
| public static void nmodelVersion(long struct, int value) Unsafe version of | |
| nnext | back to summary |
|---|---|
| public static long nnext(long struct) Unsafe version of | |
| nnext | back to summary |
|---|---|
| public static void nnext(long struct, long value) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static int ntype(long struct) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static void ntype(long struct, int value) Unsafe version of | |
| nvendorId | back to summary |
|---|---|
| public static int nvendorId(long struct) Unsafe version of | |
| nvendorId | back to summary |
|---|---|
| public static void nvendorId(long struct, int value) Unsafe version of | |
| set | back to summary |
|---|---|
| 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 | back to summary |
|---|---|
| public XrRenderModelPropertiesFB set(XrRenderModelPropertiesFB src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| type | back to summary |
|---|---|
| public int type() the
| |
| type | back to summary |
|---|---|
| public XrRenderModelPropertiesFB type(int value) Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrRenderModelPropertiesFB type$Default() Sets the | |
| vendorId | back to summary |
|---|---|
| public int vendorId() the vendor id of the model.
| |
| vendorId | back to summary |
|---|---|
| public XrRenderModelPropertiesFB vendorId(int value) Sets the specified value to the | |
XrRenderModelPropertiesFB structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final XrRenderModelPropertiesFB |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public XrRenderModelPropertiesFB. | |
| protected XrRenderModelPropertiesFB | |
| public long | |
| public XrRenderModelPropertiesFB. | |
| public ByteBuffer | |
| public XrRenderModelPropertiesFB. | modelName(ByteBuffer value)
Copies the specified encoded string to the |
| public String | Returns: the null-terminated string stored in theXrRenderModelPropertiesFB#modelName field.
|
| public int | |
| public XrRenderModelPropertiesFB. | modelVersion(int value)
Sets the specified value to the |
| public long | |
| public XrRenderModelPropertiesFB. | |
| protected XrRenderModelPropertiesFB. | |
| public int | |
| public XrRenderModelPropertiesFB. | |
| public XrRenderModelPropertiesFB. | type$Default()
Sets the |
| public int | |
| public XrRenderModelPropertiesFB. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final XrRenderModelPropertiesFB ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| flags | back to summary |
|---|---|
public long flags()
| |
| flags | back to summary |
|---|---|
| public XrRenderModelPropertiesFB. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected XrRenderModelPropertiesFB getElementFactory() Implements abstract org.
| |
| modelKey | back to summary |
|---|---|
public long modelKey()
| |
| modelKey | back to summary |
|---|---|
| public XrRenderModelPropertiesFB. Sets the specified value to the | |
| modelName | back to summary |
|---|---|
public ByteBuffer modelName()
| |
| modelName | back to summary |
|---|---|
| public XrRenderModelPropertiesFB. Copies the specified encoded string to the | |
| modelNameString | back to summary |
|---|---|
public String modelNameString()
| |
| modelVersion | back to summary |
|---|---|
public int modelVersion()
| |
| modelVersion | back to summary |
|---|---|
| public XrRenderModelPropertiesFB. Sets the specified value to the | |
| next | back to summary |
|---|---|
public long next()
| |
| next | back to summary |
|---|---|
| public XrRenderModelPropertiesFB. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected XrRenderModelPropertiesFB. Implements abstract org.
| |
| type | back to summary |
|---|---|
public int type()
| |
| type | back to summary |
|---|---|
| public XrRenderModelPropertiesFB. Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrRenderModelPropertiesFB. Sets the | |
| vendorId | back to summary |
|---|---|
public int vendorId()
| |
| vendorId | back to summary |
|---|---|
| public XrRenderModelPropertiesFB. Sets the specified value to the | |