C Specification
The xrGetSpatialBufferVector2fEXT function is defined as:
// Provided by XR_EXT_spatial_entity
XrResult xrGetSpatialBufferVector2fEXT(
    XrSpatialSnapshotEXT                        snapshot,
    const XrSpatialBufferGetInfoEXT*            info,
    uint32_t                                    bufferCapacityInput,
    uint32_t*                                   bufferCountOutput,
    XrVector2f*                                 buffer);Parameters
Description
The application can get the data for an XrSpatialBufferEXT provided
by a component, where XrSpatialBufferEXT::bufferType is
XR_SPATIAL_BUFFER_TYPE_VECTOR2F_EXT by using
xrGetSpatialBufferVector2fEXT.
The runtime must return XR_ERROR_VALIDATION_FAILURE if the
XrSpatialBufferTypeEXT for
XrSpatialBufferGetInfoEXT::bufferId is not
XR_SPATIAL_BUFFER_TYPE_VECTOR2F_EXT.
The runtime must return XR_ERROR_SPATIAL_BUFFER_ID_INVALID_EXT if
XrSpatialBufferGetInfoEXT::bufferId does not belong to
snapshot.
See Also
Document Notes
For more information, see the OpenXR Specification
This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.
Copyright
Copyright 2014-2025 The Khronos Group Inc.
This work is licensed under a Creative Commons Attribution 4.0 International License.