Top Description Fields Constructors Methods
org.lwjgl.openxr

public Class FBSpatialEntityStorage

extends Object
Class Inheritance
Imports
java.nio.*, org.lwjgl.system.*

The XR_FB_spatial_entity_storage extension.

This extension enables spatial entities to be stored and persisted across sessions. If the SPACE_COMPONENT_TYPE_STORABLE_FB component has been enabled on the spatial entity, application developers may save, load, and erase persisted 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 extensions section.

Field Summary

Modifier and TypeField and Description
public static final String
public static final int
XR_FB_spatial_entity_storage_SPEC_VERSION

The extension specification version.

public static final int
XR_SPACE_PERSISTENCE_MODE_INDEFINITE_FB

XrSpacePersistenceModeFB - Persistence mode Description

The XrSpacePersistenceModeFB enumeration specifies the persistence mode for the save operation.

public static final int
XR_SPACE_PERSISTENCE_MODE_INVALID_FB

XrSpacePersistenceModeFB - Persistence mode Description

The XrSpacePersistenceModeFB enumeration specifies the persistence mode for the save operation.

public static final int
public static final int
public static final int
XR_TYPE_SPACE_ERASE_INFO_FB

Extends XrStructureType.

public static final int
XR_TYPE_SPACE_SAVE_INFO_FB

Extends XrStructureType.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
nxrEraseSpaceFB(XrSession session, long info, long requestId)

Unsafe version of: EraseSpaceFB

public static int
nxrSaveSpaceFB(XrSession session, long info, long requestId)

Unsafe version of: SaveSpaceFB

public static int
xrEraseSpaceFB(XrSession
a handle to an XrSession.
session
,
XrSpaceEraseInfoFB
contains the parameters for the erase operation.
info
,
LongBuffer
an output parameter, and the variable it points to will be populated with the ID of this asynchronous request.
requestId
)

Erases a spatial entity from persistent storage.

public static int
xrSaveSpaceFB(XrSession
a handle to an XrSession.
session
,
XrSpaceSaveInfoFB
contains the parameters for the save operation.
info
,
LongBuffer
an output parameter, and the variable it points to will be populated with the ID of this asynchronous request.
requestId
)

Saves a spatial entity to persistent storage.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

XR_FB_SPATIAL_ENTITY_STORAGE_EXTENSION_NAMEback to summary
public static final String XR_FB_SPATIAL_ENTITY_STORAGE_EXTENSION_NAME

The extension name.

XR_FB_spatial_entity_storage_SPEC_VERSIONback to summary
public static final int XR_FB_spatial_entity_storage_SPEC_VERSION

The extension specification version.

XR_SPACE_PERSISTENCE_MODE_INDEFINITE_FBback to summary
public static final int XR_SPACE_PERSISTENCE_MODE_INDEFINITE_FB

XrSpacePersistenceModeFB - Persistence mode

Description

The XrSpacePersistenceModeFB enumeration specifies the persistence mode for the save operation.

Enumerant Descriptions
See Also

XrSpaceSaveInfoFB

XR_SPACE_PERSISTENCE_MODE_INVALID_FBback to summary
public static final int XR_SPACE_PERSISTENCE_MODE_INVALID_FB

XrSpacePersistenceModeFB - Persistence mode

Description

The XrSpacePersistenceModeFB enumeration specifies the persistence mode for the save operation.

Enumerant Descriptions
See Also

XrSpaceSaveInfoFB

XR_TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FBback to summary
public static final int XR_TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB

Extends XrStructureType.

Enum values:
XR_TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FBback to summary
public static final int XR_TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB

Extends XrStructureType.

Enum values:
XR_TYPE_SPACE_ERASE_INFO_FBback to summary
public static final int XR_TYPE_SPACE_ERASE_INFO_FB

Extends XrStructureType.

Enum values:
XR_TYPE_SPACE_SAVE_INFO_FBback to summary
public static final int XR_TYPE_SPACE_SAVE_INFO_FB

Extends XrStructureType.

Enum values:

Constructor Detail

FBSpatialEntityStorageback to summary
protected FBSpatialEntityStorage()

Method Detail

nxrEraseSpaceFBback to summary
public static int nxrEraseSpaceFB(XrSession session, long info, long requestId)

Unsafe version of: EraseSpaceFB

nxrSaveSpaceFBback to summary
public static int nxrSaveSpaceFB(XrSession session, long info, long requestId)

Unsafe version of: SaveSpaceFB

xrEraseSpaceFBback to summary
public static int xrEraseSpaceFB(XrSession session, XrSpaceEraseInfoFB info, LongBuffer requestId)

Erases a spatial entity from persistent storage.

C Specification

The EraseSpaceFB function is defined as:


XrResult xrEraseSpaceFB(
    XrSession                                   session,
    const XrSpaceEraseInfoFB*                   info,
    XrAsyncRequestIdFB*                         requestId);
Description

The EraseSpaceFB function erases a spatial entity from storage at the specified location. The XrSpace remains valid in the current session until the application destroys it or the session ends. The runtime must return ERROR_VALIDATION_FAILURE if XrSpaceEraseInfoFB::space is NULL_HANDLE or otherwise invalid. The runtime must return ERROR_VALIDATION_FAILURE if XrSpaceEraseInfoFB::location is invalid. This operation is asynchronous and the runtime must post an XrEventDataSpaceEraseCompleteFB event when the operation completes successfully or encounters an error. If this function returns a failure code, no event is posted.

Valid Usage (Implicit)
Return Codes
On success, this command returns
On failure, this command returns
See Also

XrSpaceEraseInfoFB, SaveSpaceFB

Parameters
session:XrSession

a handle to an XrSession.

info:XrSpaceEraseInfoFB

contains the parameters for the erase operation.

requestId:LongBuffer

an output parameter, and the variable it points to will be populated with the ID of this asynchronous request.

Annotations
@NativeType:XrResult
xrSaveSpaceFBback to summary
public static int xrSaveSpaceFB(XrSession session, XrSpaceSaveInfoFB info, LongBuffer requestId)

Saves a spatial entity to persistent storage.

C Specification

The SaveSpaceFB function is defined as:


XrResult xrSaveSpaceFB(
    XrSession                                   session,
    const XrSpaceSaveInfoFB*                    info,
    XrAsyncRequestIdFB*                         requestId);
Description

The SaveSpaceFB function persists the spatial entity at the specified location with the specified mode. The runtime must return ERROR_VALIDATION_FAILURE if XrSpaceSaveInfoFB::space is NULL_HANDLE or otherwise invalid. The runtime must return ERROR_VALIDATION_FAILURE if XrSpaceSaveInfoFB::location or XrSpaceSaveInfoFB::persistenceMode is invalid. This operation is asynchronous and the runtime must post an XrEventDataSpaceSaveCompleteFB event when the operation completes successfully or encounters an error. If this function returns a failure code, no event is posted.

Valid Usage (Implicit)
Return Codes
On success, this command returns
On failure, this command returns
See Also

XrSpaceSaveInfoFB, EraseSpaceFB

Parameters
session:XrSession

a handle to an XrSession.

info:XrSpaceSaveInfoFB

contains the parameters for the save operation.

requestId:LongBuffer

an output parameter, and the variable it points to will be populated with the ID of this asynchronous request.

Annotations
@NativeType:XrResult