// // Created by Admin on 2024/3/28. // #ifndef PICOXRRUNTIME_PICO_SCENE_CAPTURE_H #define PICOXRRUNTIME_PICO_SCENE_CAPTURE_H #include "pico_spatial_sensing.h" #ifdef __cplusplus extern "C" { #endif /** * XrStructureType : 1200392000 ~ 1200392999 */ #define XR_PICO_scene_capture 1 #define XR_PICO_scene_capture_SPEC_VERSION 1 #define XR_PICO_SCENE_CAPTURE_EXTENSION_NAME "XR_PICO_scene_capture" static const XrStructureType XR_TYPE_SYSTEM_SCENE_CAPTURE_PROPERTIES_PICO = (XrStructureType)1200392000; typedef struct XrSystemSceneCapturePropertiesPICO { XrStructureType type; void* next; XrBool32 supportsSceneCapture; } XrSystemSceneCapturePropertiesPICO; static const XrStructureType XR_TYPE_SCENE_CAPTURE_START_INFO_PICO = (XrStructureType) 1200392001; static const XrStructureType XR_TYPE_SCENE_CAPTURE_START_COMPLETION_PICO = (XrStructureType) 1200392002; static const XrStructureType XR_TYPE_SENSE_DATA_PROVIDER_CREATE_INFO_SCENE_CAPTURE_PICO = (XrStructureType) 1200392003; typedef struct XrSenseDataProviderCreateInfoSceneCapturePICO{ XrStructureType type; // XR_TYPE_SENSE_DATA_PROVIDER_CREATE_INFO_SCENE_CAPTURE_PICO const void* next; } XrSenseDataProviderCreateInfoSceneCapturePICO; typedef struct XrSceneCaptureStartInfoPICO { XrStructureType type; // XR_TYPE_SCENE_CAPTURE_START_INFO_PICO const void* next; } XrSceneCaptureStartInfoPICO ; typedef struct XrSceneCaptureStartCompletionPICO{ XrStructureType type;//XR_TYPE_SCENE_CAPTURE_START_COMPLETION_PICO const void* next; XrResult futureResult; }XrSceneCaptureStartCompletionPICO ; typedef XrResult (XRAPI_PTR *PFN_xrStartSceneCaptureAsyncPICO) ( XrSenseDataProviderPICO provider, XrSceneCaptureStartInfoPICO* info, XrFutureEXT* future); typedef XrResult (XRAPI_PTR *PFN_xrStartSceneCaptureCompletePICO) ( XrSenseDataProviderPICO provider, XrFutureEXT future, XrSceneCaptureStartCompletionPICO* completion); #ifndef XR_NO_PROTOTYPES #ifdef XR_EXTENSION_PROTOTYPES XRAPI_ATTR XrResult XRAPI_CALL xrStartSceneCaptureAsyncPICO( XrSenseDataProviderPICO provider, XrSceneCaptureStartInfoPICO* info, XrFutureEXT* future); XRAPI_ATTR XrResult XRAPI_CALL xrStartSceneCaptureCompletePICO( XrSenseDataProviderPICO provider, XrFutureEXT future, XrSceneCaptureStartCompletionPICO* completion); #endif /* XR_EXTENSION_PROTOTYPES */ #endif /* !XR_NO_PROTOTYPES */ #ifdef __cplusplus } #endif #endif //PICOXRRUNTIME_PICO_SCENE_CAPTURE_H