Skip to content

examples: Convert XR examples to AppBase and WebGPU device setup#8725

Merged
mvaligursky merged 1 commit into
mainfrom
mv-xr-examples-appbase
May 13, 2026
Merged

examples: Convert XR examples to AppBase and WebGPU device setup#8725
mvaligursky merged 1 commit into
mainfrom
mv-xr-examples-appbase

Conversation

@mvaligursky
Copy link
Copy Markdown
Contributor

@mvaligursky mvaligursky commented May 13, 2026

Overview

Migrates the remaining XR engine examples from pc.Application to the explicit createGraphicsDevice + AppOptions + AppBase pattern used elsewhere, removes // @config WEBGPU_DISABLED so examples follow the global deviceType (WebGL / WebGPU), and wires minimal componentSystems / resourceHandlers per example.

Changes

  • AR: ar-anchors-persistence, ar-hit-test, ar-hit-test-anchors, ar-mesh-detection, ar-plane-detectionAppBase, alpha canvas, XR manager, render/camera/light; mesh/plane examples add Screen + Element + ElementInput and font handlers for world labels.
  • VR: vr-controllers, vr-movement — add ModelComponentSystem where needed, ContainerHandler for GLB.
  • XR UI / interaction: xr-hands, xr-menu, xr-picking, xr-ui — align device creation, input (canvas / window), and systems (e.g. UI, physics, audio for xr-menu unchanged in behavior).

related to #7404

Replace pc.Application with createGraphicsDevice, AppOptions, and AppBase
across remaining XR examples; drop WEBGPU_DISABLED where present; align
input and resource handlers with each example's needs.
@mvaligursky mvaligursky self-assigned this May 13, 2026
@mvaligursky mvaligursky merged commit 6df566a into main May 13, 2026
8 checks passed
@mvaligursky mvaligursky deleted the mv-xr-examples-appbase branch May 13, 2026 14:37
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