Struct wgpu_core::resource::TextureView
source · pub struct TextureView {
pub(crate) raw: Snatchable<Box<dyn DynTextureView>>,
pub(crate) parent: Arc<Texture>,
pub(crate) device: Arc<Device>,
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) label: String,
pub(crate) tracking_data: TrackingData,
}
Fields§
§raw: Snatchable<Box<dyn DynTextureView>>
§parent: Arc<Texture>
§device: Arc<Device>
§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
§label: String
The label
from the descriptor used to create the resource.
tracking_data: TrackingData
Implementations§
source§impl TextureView
impl TextureView
fn to_render_attachment(&self, usage: TextureUses) -> RenderAttachment
source§impl TextureView
impl TextureView
pub(crate) fn raw<'a>( &'a self, snatch_guard: &'a SnatchGuard<'_>, ) -> Option<&'a dyn DynTextureView>
pub(crate) fn try_raw<'a>( &'a self, guard: &'a SnatchGuard<'_>, ) -> Result<&'a dyn DynTextureView, DestroyedResourceError>
Trait Implementations§
source§impl Debug for TextureView
impl Debug for TextureView
source§impl Drop for TextureView
impl Drop for TextureView
source§impl Labeled for TextureView
impl Labeled for TextureView
source§fn label(&self) -> &str
fn label(&self) -> &str
Returns a string identifying this resource for logging and errors. Read more
fn error_ident(&self) -> ResourceErrorIdent
source§impl ParentDevice for TextureView
impl ParentDevice for TextureView
source§impl ResourceType for TextureView
impl ResourceType for TextureView
source§impl StorageItem for TextureView
impl StorageItem for TextureView
type Marker = TextureView
source§impl Trackable for TextureView
impl Trackable for TextureView
fn tracker_index(&self) -> TrackerIndex
Auto Trait Implementations§
impl !Freeze for TextureView
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