Struct wgpu_core::resource::TextureView
source · pub struct TextureView<A: Api> {
pub(crate) raw: A::TextureView,
pub(crate) parent_id: Stored<TextureId>,
pub(crate) device_id: Stored<DeviceId>,
pub(crate) desc: HalTextureViewDescriptor,
pub(crate) format_features: TextureFormatFeatures,
pub(crate) render_extent: Result<Extent3d, TextureViewNotRenderableReason>,
pub(crate) samples: u32,
pub(crate) selector: TextureSelector,
pub(crate) life_guard: LifeGuard,
}
Fields§
§raw: A::TextureView
§parent_id: Stored<TextureId>
§device_id: Stored<DeviceId>
§desc: HalTextureViewDescriptor
§format_features: TextureFormatFeatures
§render_extent: Result<Extent3d, TextureViewNotRenderableReason>
This is Err
only if the texture view is not renderable
samples: u32
§selector: TextureSelector
§life_guard: LifeGuard
Implementations§
source§impl<A: Api> TextureView<A>
impl<A: Api> TextureView<A>
fn to_render_attachment(&self, usage: TextureUses) -> RenderAttachment<'_>
Trait Implementations§
source§impl<A: Debug + Api> Debug for TextureView<A>where
A::TextureView: Debug,
impl<A: Debug + Api> Debug for TextureView<A>where A::TextureView: Debug,
source§impl<A: Api> Resource for TextureView<A>
impl<A: Api> Resource for TextureView<A>
impl<A: HalApi> Access<Sampler<A>> for TextureView<A>
impl<A: HalApi> Access<TextureView<A>> for Device<A>
impl<A: HalApi> Access<TextureView<A>> for Root
impl<A: HalApi> Access<TextureView<A>> for Texture<A>
Auto Trait Implementations§
impl<A> !RefUnwindSafe for TextureView<A>
impl<A> Send for TextureView<A>
impl<A> Sync for TextureView<A>
impl<A> Unpin for TextureView<A>where <A as Api>::TextureView: Unpin,
impl<A> !UnwindSafe for TextureView<A>
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