You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems you normally create the TextureView from a Texture, but is it possible to retrieve the texture from a TextureView? I’m trying to do something with a Bevy camera’s render target set to RenderTarget::TextureView, which gives a reference to the TextureView not the Texture.
Thanks!
Luke
EDIT: I realised I could just keep a reference to the texture I was creating in the set-up and that will keep in sync with the camera output.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It seems you normally create the
TextureView
from aTexture
, but is it possible to retrieve the texture from aTextureView
? I’m trying to do something with a Bevy camera’s render target set toRenderTarget::TextureView
, which gives a reference to theTextureView
not theTexture
.Thanks!
Luke
EDIT: I realised I could just keep a reference to the texture I was creating in the set-up and that will keep in sync with the camera output.
Beta Was this translation helpful? Give feedback.
All reactions