XrFrameState describes the time at which the next frame will be displayed to the user. predictedDisplayTime must refer to the midpoint of the interval during which the frame is displayed. The runtime may report a different predictedDisplayPeriod from the hardware’s refresh cycle.
For any frame where shouldRender is FALSE, the application should avoid heavy GPU work for that frame, for example by not rendering its layers. This typically happens when the application is transitioning into or out of a running session, or when some system UI is fully covering the application at the moment. As long as the session is running, the application should keep running the frame loop to maintain the frame synchronization to the runtime, even if this requires calling EndFrame with all layers omitted.
type must be TYPE_FRAME_STATEnext must be NULL or a valid pointer to the next structure in a structure chain. See also: XrSecondaryViewConfigurationFrameStateMSFT
struct XrFrameState {
XrStructureType type;
void * next;
XrTime predictedDisplayTime;
XrDuration predictedDisplayPeriod;
XrBool32 shouldRender;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrFrameState.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | NEXT
The struct member offsets. |
| public static final int | PREDICTEDDISPLAYPERIOD
The struct member offsets. |
| public static final int | PREDICTEDDISPLAYTIME
The struct member offsets. |
| public static final int | SHOULDRENDER
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrFrameState(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static XrFrameState | |
| public static XrFrameState. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrFrameState | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrFrameState. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected XrFrameState | 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 XrFrameState | |
| public static XrFrameState | |
| public static XrFrameState. | create(int
the buffer capacity capacity)Returns a new |
| public static XrFrameState. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrFrameState | |
| public static XrFrameState. | |
| public static XrFrameState | |
| public static XrFrameState. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrFrameState | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrFrameState. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public long | |
| public XrFrameState | |
| public XrFrameState | next(XrSecondaryViewConfigurationFrameStateMSFT value)
Prepends the specified |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public long | predictedDisplayPeriod()
the |
| public XrFrameState | |
| public long | |
| public XrFrameState | |
| public XrFrameState | set(int type, long next, long predictedDisplayTime, long predictedDisplayPeriod, boolean shouldRender)
Initializes this struct with the specified values. |
| public XrFrameState | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public boolean | shouldRender()
|
| public XrFrameState | |
| public int | |
| public int | |
| public XrFrameState | |
| public XrFrameState |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| NEXT | back to summary |
|---|---|
| public static final int NEXT The struct member offsets. | |
| PREDICTEDDISPLAYPERIOD | back to summary |
|---|---|
| public static final int PREDICTEDDISPLAYPERIOD The struct member offsets. | |
| PREDICTEDDISPLAYTIME | back to summary |
|---|---|
| public static final int PREDICTEDDISPLAYTIME The struct member offsets. | |
| SHOULDRENDER | back to summary |
|---|---|
| public static final int SHOULDRENDER 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. | |
| XrFrameState | back to summary |
|---|---|
| protected XrFrameState(long address, ByteBuffer container) | |
| XrFrameState | back to summary |
|---|---|
| public XrFrameState(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static XrFrameState calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static XrFrameState. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrFrameState calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrFrameState. Returns a new
| |
| create | back to summary |
|---|---|
| protected XrFrameState create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static XrFrameState create() Returns a new | |
| create | back to summary |
|---|---|
| public static XrFrameState create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static XrFrameState. Returns a new
| |
| create | back to summary |
|---|---|
| public static XrFrameState. Create a
| |
| createSafe | back to summary |
|---|---|
| public static XrFrameState createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static XrFrameState. Like
| |
| malloc | back to summary |
|---|---|
| public static XrFrameState malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static XrFrameState. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrFrameState malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrFrameState. Returns a new
| |
| next | back to summary |
|---|---|
| public long next()
| |
| next | back to summary |
|---|---|
| public XrFrameState next(long value) Sets the specified value to the | |
| next | back to summary |
|---|---|
| public XrFrameState next(XrSecondaryViewConfigurationFrameStateMSFT value) Prepends the specified | |
| 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 | |
| npredictedDisplayPeriod | back to summary |
|---|---|
| public static long npredictedDisplayPeriod(long struct) Unsafe version of | |
| npredictedDisplayPeriod | back to summary |
|---|---|
| public static void npredictedDisplayPeriod(long struct, long value) Unsafe version of | |
| npredictedDisplayTime | back to summary |
|---|---|
| public static long npredictedDisplayTime(long struct) Unsafe version of | |
| npredictedDisplayTime | back to summary |
|---|---|
| public static void npredictedDisplayTime(long struct, long value) Unsafe version of | |
| nshouldRender | back to summary |
|---|---|
| public static int nshouldRender(long struct) Unsafe version of | |
| nshouldRender | back to summary |
|---|---|
| public static void nshouldRender(long struct, int 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 | |
| predictedDisplayPeriod | back to summary |
|---|---|
| public long predictedDisplayPeriod() the
| |
| predictedDisplayPeriod | back to summary |
|---|---|
| public XrFrameState predictedDisplayPeriod(long value) Sets the specified value to the | |
| predictedDisplayTime | back to summary |
|---|---|
| public long predictedDisplayTime() the anticipated display
| |
| predictedDisplayTime | back to summary |
|---|---|
| public XrFrameState predictedDisplayTime(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public XrFrameState set(int type, long next, long predictedDisplayTime, long predictedDisplayPeriod, boolean shouldRender) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public XrFrameState set(XrFrameState src) Copies the specified struct data to this struct.
| |
| shouldRender | back to summary |
|---|---|
| public boolean shouldRender()
| |
| shouldRender | back to summary |
|---|---|
| public XrFrameState shouldRender(boolean value) Sets the specified value to the | |
| 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 XrFrameState type(int value) Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrFrameState type$Default() Sets the | |
XrFrameState structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final XrFrameState |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected XrFrameState | |
| public long | |
| public XrFrameState. | |
| public XrFrameState. | next(XrSecondaryViewConfigurationFrameStateMSFT value)
Prepends the specified |
| public long | |
| public XrFrameState. | predictedDisplayPeriod(long value)
Sets the specified value to the |
| public long | |
| public XrFrameState. | predictedDisplayTime(long value)
Sets the specified value to the |
| protected XrFrameState. | |
| public boolean | |
| public XrFrameState. | |
| public int | |
| public XrFrameState. | |
| public XrFrameState. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final XrFrameState 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) | |
| getElementFactory | back to summary |
|---|---|
| protected XrFrameState getElementFactory() Implements abstract org.
| |
| next | back to summary |
|---|---|
public long next()
| |
| next | back to summary |
|---|---|
| public XrFrameState. Sets the specified value to the | |
| next | back to summary |
|---|---|
| public XrFrameState. Prepends the specified | |
| predictedDisplayPeriod | back to summary |
|---|---|
public long predictedDisplayPeriod()
| |
| predictedDisplayPeriod | back to summary |
|---|---|
| public XrFrameState. Sets the specified value to the | |
| predictedDisplayTime | back to summary |
|---|---|
public long predictedDisplayTime()
| |
| predictedDisplayTime | back to summary |
|---|---|
| public XrFrameState. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected XrFrameState. Implements abstract org.
| |
| shouldRender | back to summary |
|---|---|
public boolean shouldRender()
| |
| shouldRender | back to summary |
|---|---|
| public XrFrameState. Sets the specified value to the | |
| type | back to summary |
|---|---|
public int type()
| |
| type | back to summary |
|---|---|
| public XrFrameState. Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrFrameState. Sets the | |