Skip to content

Conversation

@toji
Copy link
Member

@toji toji commented Nov 24, 2025

Fixes #319

Adds the ability to create "texture-array" cube layers. Since this was the only layer type that lacked the textureType init attribute previously, this change moves textureType to XRLayerInit for simplicity.

One design decision I made here that wasn't discussed is how to handle stereo cube layers when using texture arrays. My approach is to have the left eye be layers 0-5 and the right eye be layers 6-11. Happy to take feedback on that!


Preview | Diff

@toji toji requested a review from cabanier November 24, 2025 23:01
@toji toji merged commit 92c079c into main Nov 24, 2025
2 checks passed
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.

Cubemap layers backed by Texture Arrays

3 participants