rename override_view_for_hmd -> override_view
This commit is contained in:
+1
-1
@@ -275,7 +275,7 @@ static XrViewConfigurationView scale_view(XrViewConfigurationView view, uint32_t
|
||||
return view;
|
||||
}
|
||||
|
||||
XrViewConfigurationView hmd_traits_t::override_view_for_hmd(XrViewConfigurationView view) const
|
||||
XrViewConfigurationView hmd_traits_t::override_view(XrViewConfigurationView view) const
|
||||
{
|
||||
// Standalone headsets tend to report a lower resolution
|
||||
// as the GPU can't handle full res.
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ extern const struct hmd_traits_t
|
||||
bool hand_interaction_grip_surface = true;
|
||||
bool pico_face_tracker = false;
|
||||
|
||||
XrViewConfigurationView override_view_for_hmd(XrViewConfigurationView) const;
|
||||
XrViewConfigurationView override_view(XrViewConfigurationView) const;
|
||||
} hmd_traits;
|
||||
|
||||
std::string model_name();
|
||||
|
||||
@@ -1114,7 +1114,7 @@ void scenes::lobby::on_focused()
|
||||
|
||||
auto views = system.view_configuration_views(viewconfig);
|
||||
assert(views.size() == 2); // FIXME
|
||||
stream_view = hmd_traits.override_view_for_hmd(views[0]);
|
||||
stream_view = hmd_traits.override_view(views[0]);
|
||||
width = views[0].recommendedImageRectWidth;
|
||||
height = views[0].recommendedImageRectHeight;
|
||||
|
||||
|
||||
@@ -217,7 +217,7 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
|
||||
|
||||
{
|
||||
auto view = self->system.view_configuration_views(self->viewconfig)[0];
|
||||
view = hmd_traits.override_view_for_hmd(view);
|
||||
view = hmd_traits.override_view(view);
|
||||
|
||||
info.render_eye_width = view.recommendedImageRectWidth * config.resolution_scale;
|
||||
info.render_eye_height = view.recommendedImageRectHeight * config.resolution_scale;
|
||||
|
||||
Reference in New Issue
Block a user