The size of a plane refers to the plane’s size in the x-y plane of the plane’s coordinate system. A plane with a position of {0,0,0}, rotation of {0,0,0,1} (no rotation), and an extent of {1,1} refers to a 1 meter x 1 meter plane centered at {0,0,0} with its front face normal vector pointing towards the +Z direction in the plane component’s space. For planes with an alignment of SCENE_PLANE_ALIGNMENT_TYPE_VERTICAL_MSFT, the +Y direction must point up away from the direction of gravity.
OpenXR uses an X-Y plane with +Z as the plane normal but other APIs may use an X-Z plane with +Y as the plane normal. The X-Y plane can be converted to an X-Z plane by rotating -π/2 radians around the +X axis.
XR_MSFT_scene_understanding extension must be enabled prior to using XrScenePlaneMSFTalignment must be a valid XrScenePlaneAlignmentTypeMSFT valueXrExtent2Df, XrScenePlanesMSFT
struct XrScenePlaneMSFT {
XrScenePlaneAlignmentTypeMSFT alignment;
XrExtent2Df size;
uint64_t meshBufferId;
XrBool32 supportsIndicesUint16;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrScenePlaneMSFT.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNMENT
The struct member offsets. |
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | MESHBUFFERID
The struct member offsets. |
| public static final int | SIZE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | SUPPORTSINDICESUINT16
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrScenePlaneMSFT(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public XrScenePlaneMSFT | |
| public static XrScenePlaneMSFT | |
| public static XrScenePlaneMSFT. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrScenePlaneMSFT | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrScenePlaneMSFT. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected XrScenePlaneMSFT | 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 XrScenePlaneMSFT | |
| public static XrScenePlaneMSFT | |
| public static XrScenePlaneMSFT. | create(int
the buffer capacity capacity)Returns a new |
| public static XrScenePlaneMSFT. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrScenePlaneMSFT | |
| public static XrScenePlaneMSFT. | |
| public static XrScenePlaneMSFT | |
| public static XrScenePlaneMSFT. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrScenePlaneMSFT | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrScenePlaneMSFT. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public long | meshBufferId()
the |
| public XrScenePlaneMSFT | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static XrExtent2Df | |
| public static void | |
| public static int | |
| public static void | |
| public XrScenePlaneMSFT | set(int alignment, XrExtent2Df size, long meshBufferId, boolean supportsIndicesUint16)
Initializes this struct with the specified values. |
| public XrScenePlaneMSFT | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public XrExtent2Df | size()
the 2D size of the plane’s extent, where |
| public XrScenePlaneMSFT | |
| public XrScenePlaneMSFT | |
| public int | |
| public boolean | |
| public XrScenePlaneMSFT |
| ALIGNMENT | back to summary |
|---|---|
| public static final int ALIGNMENT The struct member offsets. | |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| MESHBUFFERID | back to summary |
|---|---|
| public static final int MESHBUFFERID The struct member offsets. | |
| SIZE | back to summary |
|---|---|
| public static final int SIZE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| SUPPORTSINDICESUINT16 | back to summary |
|---|---|
| public static final int SUPPORTSINDICESUINT16 The struct member offsets. | |
| XrScenePlaneMSFT | back to summary |
|---|---|
| protected XrScenePlaneMSFT(long address, ByteBuffer container) | |
| XrScenePlaneMSFT | back to summary |
|---|---|
| public XrScenePlaneMSFT(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| alignment | back to summary |
|---|---|
| public int alignment() the alignment type of the plane specified by
| |
| alignment | back to summary |
|---|---|
| public XrScenePlaneMSFT alignment(int value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static XrScenePlaneMSFT calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static XrScenePlaneMSFT. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrScenePlaneMSFT calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrScenePlaneMSFT. Returns a new
| |
| create | back to summary |
|---|---|
| protected XrScenePlaneMSFT create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static XrScenePlaneMSFT create() Returns a new | |
| create | back to summary |
|---|---|
| public static XrScenePlaneMSFT create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static XrScenePlaneMSFT. Returns a new
| |
| create | back to summary |
|---|---|
| public static XrScenePlaneMSFT. Create a
| |
| createSafe | back to summary |
|---|---|
| public static XrScenePlaneMSFT createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static XrScenePlaneMSFT. Like
| |
| malloc | back to summary |
|---|---|
| public static XrScenePlaneMSFT malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static XrScenePlaneMSFT. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrScenePlaneMSFT malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrScenePlaneMSFT. Returns a new
| |
| meshBufferId | back to summary |
|---|---|
| public long meshBufferId() the
| |
| meshBufferId | back to summary |
|---|---|
| public XrScenePlaneMSFT meshBufferId(long value) Sets the specified value to the | |
| nalignment | back to summary |
|---|---|
| public static int nalignment(long struct) Unsafe version of | |
| nalignment | back to summary |
|---|---|
| public static void nalignment(long struct, int value) Unsafe version of | |
| nmeshBufferId | back to summary |
|---|---|
| public static long nmeshBufferId(long struct) Unsafe version of | |
| nmeshBufferId | back to summary |
|---|---|
| public static void nmeshBufferId(long struct, long value) Unsafe version of | |
| nsize | back to summary |
|---|---|
| public static XrExtent2Df nsize(long struct) Unsafe version of | |
| nsize | back to summary |
|---|---|
| public static void nsize(long struct, XrExtent2Df value) Unsafe version of | |
| nsupportsIndicesUint16 | back to summary |
|---|---|
| public static int nsupportsIndicesUint16(long struct) Unsafe version of | |
| nsupportsIndicesUint16 | back to summary |
|---|---|
| public static void nsupportsIndicesUint16(long struct, int value) Unsafe version of | |
| set | back to summary |
|---|---|
| public XrScenePlaneMSFT set(int alignment, XrExtent2Df size, long meshBufferId, boolean supportsIndicesUint16) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public XrScenePlaneMSFT set(XrScenePlaneMSFT src) Copies the specified struct data to this struct.
| |
| size | back to summary |
|---|---|
| public XrExtent2Df size() the 2D size of the plane’s extent, where | |
| size | back to summary |
|---|---|
| public XrScenePlaneMSFT size(XrExtent2Df value) Copies the specified | |
| size | back to summary |
|---|---|
| public XrScenePlaneMSFT size(Consumer<XrExtent2Df> consumer) | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| supportsIndicesUint16 | back to summary |
|---|---|
| public boolean supportsIndicesUint16()
| |
| supportsIndicesUint16 | back to summary |
|---|---|
| public XrScenePlaneMSFT supportsIndicesUint16(boolean value) Sets the specified value to the | |
XrScenePlaneMSFT structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final XrScenePlaneMSFT |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public XrScenePlaneMSFT. | |
| protected XrScenePlaneMSFT | |
| public long | |
| public XrScenePlaneMSFT. | |
| protected XrScenePlaneMSFT. | |
| public XrExtent2Df | |
| public XrScenePlaneMSFT. | |
| public XrScenePlaneMSFT. | size(Consumer<XrExtent2Df> consumer)
Passes the |
| public boolean | |
| public XrScenePlaneMSFT. | supportsIndicesUint16(boolean value)
Sets the specified value to the |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final XrScenePlaneMSFT 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) | |
| alignment | back to summary |
|---|---|
public int alignment()
| |
| alignment | back to summary |
|---|---|
| public XrScenePlaneMSFT. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected XrScenePlaneMSFT getElementFactory() Implements abstract org.
| |
| meshBufferId | back to summary |
|---|---|
public long meshBufferId()
| |
| meshBufferId | back to summary |
|---|---|
| public XrScenePlaneMSFT. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected XrScenePlaneMSFT. Implements abstract org.
| |
| size | back to summary |
|---|---|
public XrExtent2Df size()
| |
| size | back to summary |
|---|---|
| public XrScenePlaneMSFT. Copies the specified | |
| size | back to summary |
|---|---|
| public XrScenePlaneMSFT. Passes the | |
| supportsIndicesUint16 | back to summary |
|---|---|
public boolean supportsIndicesUint16()
| |
| supportsIndicesUint16 | back to summary |
|---|---|
| public XrScenePlaneMSFT. Sets the specified value to the | |