wgpu::Texture -> wgpu::TextureView ? #3656
Closed
zeroexcuses
started this conversation in
General
Replies: 2 comments 1 reply
-
Hello! You're slightly misreading the types - a Texture contains it's own descriptor not a view descriptor. You can call create_view, TextureViewDescriptor is a fully public struct that you can construct yourself. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Closing as this was also answered on the rust user forum. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Repost of https://users.rust-lang.org/t/wgpu-texture-wgpu-textureview/92149
https://docs.rs/wgpu/latest/src/wgpu/lib.rs.html#233-239
I have an
wgpu::Texture
; I want awgpu::TextureView
Now, I see this function
pub fn create_view(&self, desc: &TextureViewDescriptor<'_>) -> TextureView
but I do not have aTextureViewDescriptor
Now,
wgpu::Texture
itself has aTextureViewDescriptor
but it is not publicIs there anyway to do
wgpu::Texture -> wgpu::TextureView
without forking the wgpu package ? I feel like I am missing something very very obvious.Beta Was this translation helpful? Give feedback.
All reactions