Remove application::get_xr_extensions()
This commit is contained in:
@@ -408,11 +408,6 @@ public:
|
|||||||
return instance().generic_trackers;
|
return instance().generic_trackers;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const std::vector<std::string> & get_xr_extensions()
|
|
||||||
{
|
|
||||||
return instance().xr_extensions;
|
|
||||||
}
|
|
||||||
|
|
||||||
static const std::vector<const char *> & get_vk_device_extensions()
|
static const std::vector<const char *> & get_vk_device_extensions()
|
||||||
{
|
{
|
||||||
return instance().vk_device_extensions;
|
return instance().vk_device_extensions;
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
|
|
||||||
#include "application.h"
|
|
||||||
#include "body_tracker.h"
|
#include "body_tracker.h"
|
||||||
#include "details/enumerate.h"
|
#include "details/enumerate.h"
|
||||||
#include "face_tracker.h"
|
#include "face_tracker.h"
|
||||||
@@ -27,6 +26,7 @@
|
|||||||
#include "utils/contains.h"
|
#include "utils/contains.h"
|
||||||
#include "vk/check.h"
|
#include "vk/check.h"
|
||||||
#include "xr/check.h"
|
#include "xr/check.h"
|
||||||
|
#include "xr/instance.h"
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <openxr/openxr_platform.h>
|
#include <openxr/openxr_platform.h>
|
||||||
|
|
||||||
@@ -208,11 +208,10 @@ xr::passthrough_type xr::system::passthrough_supported() const
|
|||||||
if (utils::contains(environment_blend_modes(XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO), XR_ENVIRONMENT_BLEND_MODE_ALPHA_BLEND))
|
if (utils::contains(environment_blend_modes(XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO), XR_ENVIRONMENT_BLEND_MODE_ALPHA_BLEND))
|
||||||
return passthrough_type::color;
|
return passthrough_type::color;
|
||||||
|
|
||||||
const std::vector<std::string> & xr_extensions = application::get_xr_extensions();
|
if (inst->has_extension(XR_HTC_PASSTHROUGH_EXTENSION_NAME))
|
||||||
if (utils::contains(xr_extensions, XR_HTC_PASSTHROUGH_EXTENSION_NAME))
|
|
||||||
return passthrough_type::color;
|
return passthrough_type::color;
|
||||||
|
|
||||||
if (utils::contains(xr_extensions, XR_FB_PASSTHROUGH_EXTENSION_NAME))
|
if (inst->has_extension(XR_FB_PASSTHROUGH_EXTENSION_NAME))
|
||||||
{
|
{
|
||||||
XrSystemPassthroughProperties2FB passthrough_prop2{
|
XrSystemPassthroughProperties2FB passthrough_prop2{
|
||||||
.type = XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB,
|
.type = XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB,
|
||||||
|
|||||||
Reference in New Issue
Block a user