Struct wgpu::TextureView
source · pub struct TextureView { /* private fields */ }
Expand description
Handle to a texture view.
A TextureView
object describes a texture and associated metadata needed by a
RenderPipeline
or BindGroup
.
Corresponds to WebGPU GPUTextureView
.
Implementations§
source§impl TextureView
impl TextureView
sourcepub fn global_id(&self) -> Id<TextureView>
Available on crate feature expose-ids
only.
pub fn global_id(&self) -> Id<TextureView>
expose-ids
only.Returns a globally-unique identifier for this TextureView
.
Calling this method multiple times on the same object will always return the same value.
The returned value is guaranteed to be unique among all TextureView
s created from the same
Instance
.
Trait Implementations§
source§impl Debug for TextureView
impl Debug for TextureView
Auto Trait Implementations§
impl !RefUnwindSafe for TextureView
impl Send for TextureView
impl Sync for TextureView
impl Unpin for TextureView
impl !UnwindSafe for TextureView
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more