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: StringThe label from the descriptor used to create the resource.
tracking_data: TrackingDataImplementations§
Source§impl TextureView
 
impl TextureView
fn to_render_attachment(&self, usage: TextureUses) -> RenderAttachment
Source§impl TextureView
 
impl TextureView
Sourcepub(crate) fn check_usage(
    &self,
    expected: TextureUsages,
) -> Result<(), MissingTextureUsageError>
 
pub(crate) fn check_usage( &self, expected: TextureUsages, ) -> Result<(), MissingTextureUsageError>
Checks that the given texture usage contains the required texture usage, returns an error otherwise.
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 RawResourceAccess for TextureView
 
impl RawResourceAccess for TextureView
type DynResource = dyn DynTextureView
Source§fn raw<'a>(
    &'a self,
    guard: &'a SnatchGuard<'_>,
) -> Option<&'a Self::DynResource>
 
fn raw<'a>( &'a self, guard: &'a SnatchGuard<'_>, ) -> Option<&'a Self::DynResource>
Get access to the raw resource if it is not destroyed. Read more
Source§fn try_raw<'a>(
    &'a self,
    guard: &'a SnatchGuard<'_>,
) -> Result<&'a Self::DynResource, DestroyedResourceError>
 
fn try_raw<'a>( &'a self, guard: &'a SnatchGuard<'_>, ) -> Result<&'a Self::DynResource, DestroyedResourceError>
Get access to the raw resource if it is not destroyed. Read more
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