Skip to content

Add 'superseded by ImagePresentationComponent' status note; StereoPair: Equatable#2

Open
halmueller wants to merge 1 commit into
developfrom
add-status-note-and-equatable
Open

Add 'superseded by ImagePresentationComponent' status note; StereoPair: Equatable#2
halmueller wants to merge 1 commit into
developfrom
add-status-note-and-equatable

Conversation

@halmueller

Copy link
Copy Markdown
Owner

Summary

Minimal, non-behavioral update to mark this 2024 sample's status and fix one type-system gap.

  • README: new Status (2025) section explaining this ShaderGraphMaterial + CameraIndexSwitch approach (visionOS 2.0 / Xcode 16.2) is superseded by visionOS 26's ImagePresentationComponent with .spatialStereo, and why — texture-swap memory leaks, synchronous TextureResource.load on the render thread, the grayscale-load bug (FB13733823) patched with the blue-streak hack, no depth/convergence control (wide-baseline pairs like several Middlebury 2021 scenes are uncomfortably deep), and the fixed plane aspect. Points to the productized spatial-HEIC successor.
  • StereoPair: add Equatable conformance (it already defined a free == without declaring it).

Notes

  • The app is intentionally left as-is (shader-graph renderer unchanged); this is documentation + a one-line type fix only.
  • Builds clean for "SG Stereo revised" on the visionOS 26.5 SDK. Confirmed there is no duplicate-StereoView build error: StereoView_revised.swift and StereoView_simple.swift are each compiled by their own target ("SG Stereo revised" / "SG Stereo simple"), not both in one — so they don't collide.

🤖 Generated with Claude Code

…oPair: Equatable

Add a Status section explaining this 2024 (visionOS 2.0) ShaderGraphMaterial +
CameraIndexSwitch sample is superseded by visionOS 26's ImagePresentationComponent
(.spatialStereo), and why (texture-swap leaks, sync TextureResource.load on the
render thread, the grayscale-load bug, no depth/convergence control, fixed plane
aspect). Points to the productized spatial-HEIC successor.

Conform StereoPair to Equatable (it already defined a free `==` without declaring
conformance). Builds clean ("SG Stereo revised", visionOS 26.5 SDK) — the two
StereoView files live in separate targets, so there is no duplicate-symbol error.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant