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§

Available on crate feature 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 different for all resources created from the same Instance.

Trait Implementations§

Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.