Skip to content

feat(xr): WebGPU texture-array projection and vr-basic gallery refresh#8724

Merged
mvaligursky merged 1 commit into
mainfrom
mv-xr-vr-basic-webgpu-gallery
May 13, 2026
Merged

feat(xr): WebGPU texture-array projection and vr-basic gallery refresh#8724
mvaligursky merged 1 commit into
mainfrom
mv-xr-vr-basic-webgpu-gallery

Conversation

@mvaligursky
Copy link
Copy Markdown
Contributor

Overview

Improves WebGPU immersive XR presentation by preferring a texture-array projection layer when the runtime supports it, and refreshes the vr-basic example for WebGPU-friendly bootstrapping, floor reference space, and a new gallery asset with attribution.

Changes:

  • WebGPU XR bridge: Try createProjectionLayer with textureType: 'texture-array' first; fall back to 'texture' if creation throws.
  • WebGPU device: Comment in frameStart clarifying that XR array color targets use per-layer width/height for backbuffer sizing.
  • vr-basic example: AppBase + AppOptions + createGraphicsDevice(deviceType) (examples iframe WebGPU picker); load XR VR Gallery Space (xr_gallery.glb) with Sketchfab attribution file; XRSPACE_LOCALFLOOR; initial camera pose constants for desktop preview.

Public API: None.

Examples:

  • examples/src/examples/xr/vr-basic.example.mjs
  • examples/assets/models/xr_gallery.glb, examples/assets/models/xr_gallery.txt (CC BY 4.0, Josh Johanson / Sketchfab link in txt)

Prefer texture-array XR projection layers with texture fallback; document
frameStart backbuffer sizing for array color targets. Refactor vr-basic to
AppBase + createGraphicsDevice, XRSPACE_LOCALFLOOR, Sketchfab xr_gallery
room asset with attribution, and desktop camera pose tuning.
@mvaligursky mvaligursky self-assigned this May 13, 2026
@mvaligursky mvaligursky merged commit 7094061 into main May 13, 2026
8 checks passed
@mvaligursky mvaligursky deleted the mv-xr-vr-basic-webgpu-gallery branch May 13, 2026 13:22
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