9 XrViewConfigurationType
Type;
17 XrViewConfigurationType
Type;
24 return type == XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO || type == XR_VIEW_CONFIGURATION_TYPE_PRIMARY_MONO ||
25 type == XR_VIEW_CONFIGURATION_TYPE_PRIMARY_QUAD_VARJO;
30 XrViewConfigurationType viewConfigurationType,
31 const std::vector<XrEnvironmentBlendMode>& appSupportedEnvironmentBlendModes) {
32 XrViewConfigurationProperties viewConfigProperties{XR_TYPE_VIEW_CONFIGURATION_PROPERTIES};
33 CHECK_XRCMD(xrGetViewConfigurationProperties(instance, systemId, viewConfigurationType, &viewConfigProperties));
36 properties.
Type = viewConfigurationType;
37 properties.FovMutable = viewConfigProperties.fovMutable;
46 XrSystemId systemId) {
48 state.
Type = viewConfigurationType;
50 state.Views.resize(state.ViewConfigViews.size(), {XR_TYPE_VIEW});
56 const std::vector<XrViewConfigurationView>& newConfigs) {
57 assert(oldConfigs.size() == newConfigs.size());
58 size_t end = (std::min)(oldConfigs.size(), newConfigs.size());
59 for (
size_t i = 0; i < end; i++) {
60 if ((oldConfigs[i].recommendedImageRectWidth != newConfigs[i].recommendedImageRectWidth) ||
61 (oldConfigs[i].recommendedImageRectHeight != newConfigs[i].recommendedImageRectHeight)) {
The xr::DispatchTable struct contains all available PFN pointers to xr functions including those in a...
std::vector< XrEnvironmentBlendMode > EnumerateEnvironmentBlendModes(XrInstance instance, XrSystemId systemId, XrViewConfigurationType viewConfigType)
std::vector< XrViewConfigurationView > EnumerateViewConfigurationViews(XrInstance instance, XrSystemId systemId, XrViewConfigurationType viewConfigurationType)
bool IsRecommendedSwapchainSizeChanged(const std::vector< XrViewConfigurationView > &oldConfigs, const std::vector< XrViewConfigurationView > &newConfigs)
XrEnvironmentBlendMode PickEnvironmentBlendMode(const std::vector< XrEnvironmentBlendMode > &systemSupportedBlendModes, const std::vector< XrEnvironmentBlendMode > &appSupportedBlendModes)
ViewProperties CreateViewProperties(XrInstance instance, XrSystemId systemId, XrViewConfigurationType viewConfigurationType, const std::vector< XrEnvironmentBlendMode > &appSupportedEnvironmentBlendModes)
ViewConfigurationState CreateViewConfigurationState(XrViewConfigurationType viewConfigurationType, XrInstance instance, XrSystemId systemId)
constexpr bool IsPrimaryViewConfigurationType(XrViewConfigurationType type)
std::vector< XrView > Views
std::vector< XrViewConfigurationView > ViewConfigViews
XrViewConfigurationType Type
std::vector< XrEnvironmentBlendMode > SupportedBlendModes
XrViewConfigurationType Type
XrEnvironmentBlendMode BlendMode