Skip to content

Enable OpenVR flat screen submissions#8

Open
mutars wants to merge 1 commit intomasterfrom
codex/design-architecture-changes-for-openxr-support
Open

Enable OpenVR flat screen submissions#8
mutars wants to merge 1 commit intomasterfrom
codex/design-architecture-changes-for-openxr-support

Conversation

@mutars
Copy link
Owner

@mutars mutars commented Feb 5, 2026

Motivation

  • Allow the flat-screen/quad display setting to be used with OpenVR instead of being blocked by a hardcoded HMD check.
  • When flat-screen mode is selected, present the same rendered image to both OpenVR eye layers so desktop/flat output can be recorded or shown correctly.

Description

  • Removed the OpenVR-specific early-return in ModSettings::showFlatScreenDisplay() so the flat screen setting can be used for OpenVR (updated src/ModSettings.cpp).
  • Added a flat_openvr check and flat-screen submission path to the D3D11 renderer that duplicates the eye texture into the opposite-eye texture and submits both eyes (updated src/mods/vr/D3D11Component.cpp).
  • Added ModSettings.h include and the same flat-screen submission logic to the D3D12 renderer, duplicating the eye texture for both eyes and submitting both layers when enabled (updated src/mods/vr/D3D12Component.cpp).
  • Adjusted the pose/bounds handling in the flat mode branches so both left and right eye submits use the duplicated textures and are submitted to the compositor.

Testing

  • No automated tests were executed for this change.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant