mirror of
https://github.com/bevyengine/bevy
synced 2024-11-26 22:50:19 +00:00
6ce4bf5181
# Objective We can currently set `camera.target` to either an `Image` or `Window`. For OpenXR & WebXR we need to be able to render to a `TextureView`. This partially addresses #115 as with the addition we can create internal and external xr crates. ## Solution A `TextureView` item is added to the `RenderTarget` enum. It holds an id which is looked up by a `ManualTextureViews` resource, much like how `Assets<Image>` works. I believe this approach was first used by @kcking in their [xr fork]( |
||
---|---|---|
.. | ||
macros | ||
src | ||
Cargo.toml |