Class FBSpatialEntityStorageBatch
This extension enables multiple spatial entities at a time to be persisted across sessions. If the SPACE_COMPONENT_TYPE_STORABLE_FB component has been enabled on the spatial entity, application developers may save and erase XrSpace entities.
In order to enable the functionality of this extension, you must pass the name of the extension into CreateInstance via the XrInstanceCreateInfo::enabledExtensionNames parameter as indicated in the extension section.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version.static final intExtendsXrStructureType.static final intExtendsXrStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnxrSaveSpaceListFB(XrSession session, long info, long requestId) Unsafe version of:SaveSpaceListFBstatic intxrSaveSpaceListFB(XrSession session, XrSpaceListSaveInfoFB info, LongBuffer requestId) Saves a list of spatial entities to persistent storage.
-
Field Details
-
XR_FB_spatial_entity_storage_batch_SPEC_VERSION
public static final int XR_FB_spatial_entity_storage_batch_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_FB_SPATIAL_ENTITY_STORAGE_BATCH_EXTENSION_NAME
The extension name.- See Also:
-
XR_TYPE_SPACE_LIST_SAVE_INFO_FB
public static final int XR_TYPE_SPACE_LIST_SAVE_INFO_FBExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB
public static final int XR_TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FBExtendsXrStructureType.Enum values:
- See Also:
-
-
Method Details
-
nxrSaveSpaceListFB
Unsafe version of:SaveSpaceListFB -
xrSaveSpaceListFB
public static int xrSaveSpaceListFB(XrSession session, XrSpaceListSaveInfoFB info, LongBuffer requestId) Saves a list of spatial entities to persistent storage.C Specification
The
SaveSpaceListFBfunction is defined as:XrResult xrSaveSpaceListFB( XrSession session, const XrSpaceListSaveInfoFB* info, XrAsyncRequestIdFB* requestId);Description
The
SaveSpaceListFBfunction persists the specified spatial entities at the specified storage location. The runtime must returnERROR_VALIDATION_FAILUREifXrSpaceSaveInfoFB::locationis invalid. This operation is asynchronous and the runtime must post anXrEventDataSpaceListSaveCompleteFBevent when the operation completes successfully or encounters an error. If this function returns a failure code, no event is posted.Valid Usage (Implicit)
- The
XR_FB_spatial_entity_storage_batchextension must be enabled prior to callingSaveSpaceListFB sessionmust be a validXrSessionhandleinfomust be a pointer to a validXrSpaceListSaveInfoFBstructurerequestIdmust be a pointer to anXrAsyncRequestIdFBvalue
Return Codes
- On success, this command returns
- On failure, this command returns
ERROR_FUNCTION_UNSUPPORTEDERROR_VALIDATION_FAILUREERROR_RUNTIME_FAILUREERROR_HANDLE_INVALIDERROR_INSTANCE_LOSTERROR_SESSION_LOSTERROR_SPACE_NETWORK_TIMEOUT_FBERROR_SPACE_NETWORK_REQUEST_FAILED_FBERROR_SPACE_MAPPING_INSUFFICIENT_FBERROR_SPACE_LOCALIZATION_FAILED_FBERROR_SPACE_COMPONENT_NOT_ENABLED_FBERROR_SPACE_CLOUD_STORAGE_DISABLED_FBERROR_FEATURE_UNSUPPORTED
See Also
- Parameters:
session- a handle to anXrSession.info- contains the parameters for the save operation.requestId- an output parameter, and the variable it points to will be populated with the ID of this asynchronous request.
- The
-