This extension supports conversion between XrSpatialAnchorMSFT and Windows.Perception.Spatial.SpatialAnchor. An application can use this extension to persist spatial anchors on the Windows device through SpatialAnchorStore or transfer spatial anchors between devices through SpatialAnchorTransferManager.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | XR_MSFT_PERCEPTION_ANCHOR_INTEROP_EXTENSION_NAME
The extension name. |
| public static final int | XR_MSFT_perception_anchor_interop_SPEC_VERSION
The extension specification version. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | nxrCreateSpatialAnchorFromPerceptionAnchorMSFT(XrSession session, long perceptionAnchor, long anchor)
Unsafe version of: |
| public static int | nxrTryGetPerceptionAnchorFromSpatialAnchorMSFT(XrSession session, XrSpatialAnchorMSFT anchor, long perceptionAnchor)
Unsafe version of: |
| public static int | xrCreateSpatialAnchorFromPerceptionAnchorMSFT(XrSession
the specified session, long XrSession.an IUnknown pointer to a Windows.Perception.Spatial.SpatialAnchor object. perceptionAnchor, PointerBuffer a pointer to anchor)XrSpatialAnchorMSFT to receive the returned anchor handle.Create an |
| public static int | xrTryGetPerceptionAnchorFromSpatialAnchorMSFT(XrSession
the specified session, XrSpatialAnchorMSFT XrSession.a valid anchor, PointerBuffer XrSpatialAnchorMSFT handle.a valid pointer to IUnknown pointer to receive the output Windows.Perception.Spatial.SpatialAnchor object. perceptionAnchor)Convert an |
| XR_MSFT_PERCEPTION_ANCHOR_INTEROP_EXTENSION_NAME | back to summary |
|---|---|
| public static final String XR_MSFT_PERCEPTION_ANCHOR_INTEROP_EXTENSION_NAME The extension name. | |
| XR_MSFT_perception_anchor_interop_SPEC_VERSION | back to summary |
|---|---|
| public static final int XR_MSFT_perception_anchor_interop_SPEC_VERSION The extension specification version. | |
| MSFTPerceptionAnchorInterop | back to summary |
|---|---|
| protected MSFTPerceptionAnchorInterop() | |
| nxrCreateSpatialAnchorFromPerceptionAnchorMSFT | back to summary |
|---|---|
| public static int nxrCreateSpatialAnchorFromPerceptionAnchorMSFT(XrSession session, long perceptionAnchor, long anchor) Unsafe version of: | |
| nxrTryGetPerceptionAnchorFromSpatialAnchorMSFT | back to summary |
|---|---|
| public static int nxrTryGetPerceptionAnchorFromSpatialAnchorMSFT(XrSession session, XrSpatialAnchorMSFT anchor, long perceptionAnchor) Unsafe version of: | |
| xrCreateSpatialAnchorFromPerceptionAnchorMSFT | back to summary |
|---|---|
| public static int xrCreateSpatialAnchorFromPerceptionAnchorMSFT(XrSession session, long perceptionAnchor, PointerBuffer anchor) Create an C SpecificationThe
DescriptionThe input If the function successfully returned, the output When application is done with the Valid Usage (Implicit)
Return Codes
| |
| xrTryGetPerceptionAnchorFromSpatialAnchorMSFT | back to summary |
|---|---|
| public static int xrTryGetPerceptionAnchorFromSpatialAnchorMSFT(XrSession session, XrSpatialAnchorMSFT anchor, PointerBuffer perceptionAnchor) Convert an C SpecificationThe
DescriptionIf the runtime can convert the If the runtime cannot convert the Valid Usage (Implicit)
Return Codes
| |