WVR_SetPassthroughImageQuality

WVR_EXPORT bool WVR_SetPassthroughImageQuality(WVR_PassthroughImageQuality quality)

Function to set the quality of the passthrough image.

The API adjusts the quality of passthrough to the WaveVR Runtime, Affects the WVR_ShowPassthroughOverlay(), WVR_ShowPassthroughUnderlay and WVR_ShowProjectedPassthrough

Return
true if the setting of passthrough quality is successful, otherwise return false if not supported by the Runtime.
Version
API Level 12
Note
Supported since Runtime version 12 or higher.
Parameters

How to use

The following example shows how to specify the image quality for the underlay passthrough:

#include <wvr/wvr_system.h>

void showPassthrough() {
    uint64_t support = WVR_GetSupportedFeatures();
    if (support & WVR_SupportedFeature_PassthroughOverlay) {
        WVR_SetPassthroughImageQuality(WVR_PassthroughImageQuality_PerformanceMode);
        WVR_ShowPassthroughUnderlay(true);
    }
}