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 unsafe fn as_hal<A: HalApi, F: FnOnce(Option<&A::TextureView>) -> R, R>(
&self,
hal_texture_view_callback: F
) -> R
Available on wgpu_core
only.
pub unsafe fn as_hal<A: HalApi, F: FnOnce(Option<&A::TextureView>) -> R, R>( &self, hal_texture_view_callback: F ) -> R
wgpu_core
only.Returns the inner hal TextureView using a callback. The hal texture will be None
if the
backend type argument does not match with this wgpu Texture
Safety
- The raw handle obtained from the hal TextureView must not be manually destroyed
Trait Implementations§
source§impl Debug for TextureView
impl Debug for TextureView
source§impl Drop for TextureView
impl Drop for TextureView
source§impl Hash for TextureView
impl Hash for TextureView
source§impl Ord for TextureView
impl Ord for TextureView
source§impl PartialEq for TextureView
impl PartialEq for TextureView
source§impl PartialOrd for TextureView
impl PartialOrd for TextureView
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq 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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more