WVR Supported Features

Check if the following features are supported in your device before using the related APIs.

WVR_EXPORT uint64_t WVR_GetSupportedFeatures()

Function to get if a feature is supportted.

This API can work before or after invoking WVR_Init

Return
The bitmask of all the supported features
Version
API Level 5

How to use

Here is an example for WVR_GetSupportedFeatures:

#include <wvr/wvr.h>
#include <wvr/wvr_arena.h>
#include <wvr/wvr_camera.h>
#include <wvr/wvr_hand.h>

uint64_t supported = WVR_GetSupportedFeatures();

if (supported & WVR_SupportedFeature_PassthroughImage) {
    // This device supports passthrough image feature
    WVR_CameraInfo cameraInfo;
    WVR_StartCamera(&cameraInfo);
}

if (supported & WVR_SupportedFeature_PassthroughOverlay) {
    // This device supports passthrough overlay feature
    WVR_ShowPassthroughOverlay(true)
}

if (supported & WVR_SupportedFeature_HandTracking) {
    // This device supports hand tracking feature
    WVR_StartHandTracking();
}

if (supported & WVR_SupportedFeature_HandGesture) {
    // This device supports hand gesture feature
    WVR_StartHandGesture();
}