XrViewConfigurationType.
This structure is similar to the XrFrameEndInfo structure, with an extra XrViewConfigurationType field to specify the view configuration for which the submitted layers will be rendered.
The application should render its content for both the primary and secondary view configurations using the same predictedDisplayTime reported by WaitFrame. The runtime must treat both the primary views and secondary views as being submitted for the same displayTime specified in the call to EndFrame.
For layers such as quad layers whose content is identical across view configurations, the application can submit the same XrCompositionLayerBaseHeader structures to multiple view configurations in the same EndFrame function call.
For each frame, the application should only render and submit layers for the secondary view configurations that were active that frame, as indicated in the XrSecondaryViewConfigurationFrameStateMSFT filled in for that frame’s WaitFrame call. The runtime must ignore composition layers submitted for an inactive view configuration.
XR_MSFT_secondary_view_configuration extension must be enabled prior to using XrSecondaryViewConfigurationLayerInfoMSFTtype must be TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFTnext must be NULL or a valid pointer to the next structure in a structure chainviewConfigurationType must be a valid XrViewConfigurationType valueenvironmentBlendMode must be a valid XrEnvironmentBlendMode valuelayers must be a pointer to an array of layerCount valid XrCompositionLayerBaseHeader-based structures. See also: XrCompositionLayerCubeKHR, XrCompositionLayerCylinderKHR, XrCompositionLayerEquirect2KHR, XrCompositionLayerEquirectKHR, XrCompositionLayerPassthroughHTC, XrCompositionLayerProjection, XrCompositionLayerQuadlayerCount parameter must be greater than 0XrCompositionLayerBaseHeader, XrSecondaryViewConfigurationFrameEndInfoMSFT, EndFrame
struct XrSecondaryViewConfigurationLayerInfoMSFT {
XrStructureType type;
void const * next;
XrViewConfigurationType viewConfigurationType;
XrEnvironmentBlendMode environmentBlendMode;
uint32_t layerCount;
XrCompositionLayerBaseHeader const * const * layers;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | ENVIRONMENTBLENDMODE
The struct member offsets. |
| public static final int | LAYERCOUNT
The struct member offsets. |
| public static final int | LAYERS
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 | VIEWCONFIGURATIONTYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrSecondaryViewConfigurationLayerInfoMSFT(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static XrSecondaryViewConfigurationLayerInfoMSFT | |
| public static XrSecondaryViewConfigurationLayerInfoMSFT. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrSecondaryViewConfigurationLayerInfoMSFT | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrSecondaryViewConfigurationLayerInfoMSFT. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected XrSecondaryViewConfigurationLayerInfoMSFT | 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 XrSecondaryViewConfigurationLayerInfoMSFT | create()
Returns a new |
| public static XrSecondaryViewConfigurationLayerInfoMSFT | create(long address)
Returns a new |
| public static XrSecondaryViewConfigurationLayerInfoMSFT. | create(int
the buffer capacity capacity)Returns a new |
| public static XrSecondaryViewConfigurationLayerInfoMSFT. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrSecondaryViewConfigurationLayerInfoMSFT | |
| public static XrSecondaryViewConfigurationLayerInfoMSFT. | |
| public int | environmentBlendMode()
the |
| public XrSecondaryViewConfigurationLayerInfoMSFT | |
| public int | layerCount()
the number of composition layers in this frame for the secondary view configuration type. |
| public PointerBuffer | |
| public XrSecondaryViewConfigurationLayerInfoMSFT | |
| public static XrSecondaryViewConfigurationLayerInfoMSFT | |
| public static XrSecondaryViewConfigurationLayerInfoMSFT. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrSecondaryViewConfigurationLayerInfoMSFT | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrSecondaryViewConfigurationLayerInfoMSFT. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static int | |
| public static void | |
| public long | |
| public XrSecondaryViewConfigurationLayerInfoMSFT | |
| public static int | |
| public static void | nlayerCount(long struct, int value)
Sets the specified value to the |
| public static PointerBuffer | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public XrSecondaryViewConfigurationLayerInfoMSFT | set(int type, long next, int viewConfigurationType, int environmentBlendMode, PointerBuffer layers)
Initializes this struct with the specified values. |
| public XrSecondaryViewConfigurationLayerInfoMSFT | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public XrSecondaryViewConfigurationLayerInfoMSFT | |
| public XrSecondaryViewConfigurationLayerInfoMSFT | |
| public static void | |
| public int | |
| public XrSecondaryViewConfigurationLayerInfoMSFT |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| ENVIRONMENTBLENDMODE | back to summary |
|---|---|
| public static final int ENVIRONMENTBLENDMODE The struct member offsets. | |
| LAYERCOUNT | back to summary |
|---|---|
| public static final int LAYERCOUNT The struct member offsets. | |
| LAYERS | back to summary |
|---|---|
| public static final int LAYERS 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. | |
| VIEWCONFIGURATIONTYPE | back to summary |
|---|---|
| public static final int VIEWCONFIGURATIONTYPE The struct member offsets. | |
| XrSecondaryViewConfigurationLayerInfoMSFT | back to summary |
|---|---|
| protected XrSecondaryViewConfigurationLayerInfoMSFT(long address, ByteBuffer container) | |
| XrSecondaryViewConfigurationLayerInfoMSFT | back to summary |
|---|---|
| public XrSecondaryViewConfigurationLayerInfoMSFT(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static XrSecondaryViewConfigurationLayerInfoMSFT calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static XrSecondaryViewConfigurationLayerInfoMSFT. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrSecondaryViewConfigurationLayerInfoMSFT calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrSecondaryViewConfigurationLayerInfoMSFT. Returns a new
| |
| create | back to summary |
|---|---|
| protected XrSecondaryViewConfigurationLayerInfoMSFT create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static XrSecondaryViewConfigurationLayerInfoMSFT create() Returns a new | |
| create | back to summary |
|---|---|
| public static XrSecondaryViewConfigurationLayerInfoMSFT create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static XrSecondaryViewConfigurationLayerInfoMSFT. Returns a new
| |
| create | back to summary |
|---|---|
| public static XrSecondaryViewConfigurationLayerInfoMSFT. Create a
| |
| createSafe | back to summary |
|---|---|
| public static XrSecondaryViewConfigurationLayerInfoMSFT createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static XrSecondaryViewConfigurationLayerInfoMSFT. Like
| |
| environmentBlendMode | back to summary |
|---|---|
| public int environmentBlendMode() the
| |
| environmentBlendMode | back to summary |
|---|---|
| public XrSecondaryViewConfigurationLayerInfoMSFT environmentBlendMode(int value) Sets the specified value to the | |
| layerCount | back to summary |
|---|---|
| public int layerCount() the number of composition layers in this frame for the secondary view configuration type. The maximum supported layer count is identified by
| |
| layers | back to summary |
|---|---|
| public PointerBuffer layers() a pointer to an array of
| |
| layers | back to summary |
|---|---|
| public XrSecondaryViewConfigurationLayerInfoMSFT layers(PointerBuffer value) Sets the address of the specified | |
| malloc | back to summary |
|---|---|
| public static XrSecondaryViewConfigurationLayerInfoMSFT malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static XrSecondaryViewConfigurationLayerInfoMSFT. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrSecondaryViewConfigurationLayerInfoMSFT malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrSecondaryViewConfigurationLayerInfoMSFT. Returns a new
| |
| nenvironmentBlendMode | back to summary |
|---|---|
| public static int nenvironmentBlendMode(long struct) Unsafe version of | |
| nenvironmentBlendMode | back to summary |
|---|---|
| public static void nenvironmentBlendMode(long struct, int value) Unsafe version of | |
| next | back to summary |
|---|---|
| public long next()
| |
| next | back to summary |
|---|---|
| public XrSecondaryViewConfigurationLayerInfoMSFT next(long value) Sets the specified value to the | |
| nlayerCount | back to summary |
|---|---|
| public static int nlayerCount(long struct) Unsafe version of | |
| nlayerCount | back to summary |
|---|---|
| public static void nlayerCount(long struct, int value) Sets the specified value to the | |
| nlayers | back to summary |
|---|---|
| public static PointerBuffer nlayers(long struct) Unsafe version of | |
| nlayers | back to summary |
|---|---|
| public static void nlayers(long struct, PointerBuffer 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 | |
| nviewConfigurationType | back to summary |
|---|---|
| public static int nviewConfigurationType(long struct) Unsafe version of | |
| nviewConfigurationType | back to summary |
|---|---|
| public static void nviewConfigurationType(long struct, int value) Unsafe version of | |
| set | back to summary |
|---|---|
| public XrSecondaryViewConfigurationLayerInfoMSFT set(int type, long next, int viewConfigurationType, int environmentBlendMode, PointerBuffer layers) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public XrSecondaryViewConfigurationLayerInfoMSFT set(XrSecondaryViewConfigurationLayerInfoMSFT 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 XrSecondaryViewConfigurationLayerInfoMSFT type(int value) Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrSecondaryViewConfigurationLayerInfoMSFT type$Default() Sets the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
| viewConfigurationType | back to summary |
|---|---|
| public int viewConfigurationType()
| |
| viewConfigurationType | back to summary |
|---|---|
| public XrSecondaryViewConfigurationLayerInfoMSFT viewConfigurationType(int value) Sets the specified value to the | |
XrSecondaryViewConfigurationLayerInfoMSFT structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final XrSecondaryViewConfigurationLayerInfoMSFT |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final XrSecondaryViewConfigurationLayerInfoMSFT 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) | |
| environmentBlendMode | back to summary |
|---|---|
public int environmentBlendMode()
| |
| environmentBlendMode | back to summary |
|---|---|
| public XrSecondaryViewConfigurationLayerInfoMSFT. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected XrSecondaryViewConfigurationLayerInfoMSFT getElementFactory() Implements abstract org.
| |
| layerCount | back to summary |
|---|---|
public int layerCount()
| |
| layers | back to summary |
|---|---|
public PointerBuffer layers()
| |
| layers | back to summary |
|---|---|
| public XrSecondaryViewConfigurationLayerInfoMSFT. Sets the address of the specified | |
| next | back to summary |
|---|---|
public long next()
| |
| next | back to summary |
|---|---|
| public XrSecondaryViewConfigurationLayerInfoMSFT. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected XrSecondaryViewConfigurationLayerInfoMSFT. Implements abstract org.
| |
| type | back to summary |
|---|---|
public int type()
| |
| type | back to summary |
|---|---|
| public XrSecondaryViewConfigurationLayerInfoMSFT. Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrSecondaryViewConfigurationLayerInfoMSFT. Sets the | |
| viewConfigurationType | back to summary |
|---|---|
public int viewConfigurationType()
| |
| viewConfigurationType | back to summary |
|---|---|
| public XrSecondaryViewConfigurationLayerInfoMSFT. Sets the specified value to the | |