pub struct Texture<A: Api> {
pub(crate) inner: TextureInner<A>,
pub(crate) device_id: Stored<DeviceId>,
pub(crate) desc: TextureDescriptor<(), Vec<TextureFormat>>,
pub(crate) hal_usage: TextureUses,
pub(crate) format_features: TextureFormatFeatures,
pub(crate) initialization_status: TextureInitTracker,
pub(crate) full_range: TextureSelector,
pub(crate) life_guard: LifeGuard,
pub(crate) clear_mode: TextureClearMode<A>,
}
Fields§
§inner: TextureInner<A>
§device_id: Stored<DeviceId>
§desc: TextureDescriptor<(), Vec<TextureFormat>>
§hal_usage: TextureUses
§format_features: TextureFormatFeatures
§initialization_status: TextureInitTracker
§full_range: TextureSelector
§life_guard: LifeGuard
§clear_mode: TextureClearMode<A>
Implementations§
source§impl<A: Api> Texture<A>
impl<A: Api> Texture<A>
pub(crate) fn get_clear_view( &self, mip_level: u32, depth_or_layer: u32 ) -> &A::TextureView
Trait Implementations§
source§impl<A: Api> Borrow<TextureSelector> for Texture<A>
impl<A: Api> Borrow<TextureSelector> for Texture<A>
source§fn borrow(&self) -> &TextureSelector
fn borrow(&self) -> &TextureSelector
Immutably borrows from an owned value. Read more
impl<A: HalApi> Access<Texture<A>> for Buffer<A>
impl<A: HalApi> Access<Texture<A>> for Device<A>
impl<A: HalApi> Access<Texture<A>> for Root
impl<A: HalApi> Access<TextureView<A>> for Texture<A>
Auto Trait Implementations§
impl<A> !RefUnwindSafe for Texture<A>
impl<A> Send for Texture<A>
impl<A> Sync for Texture<A>
impl<A> Unpin for Texture<A>where <A as Api>::SurfaceTexture: Unpin, <A as Api>::Texture: Unpin, <A as Api>::TextureView: Unpin,
impl<A> !UnwindSafe for Texture<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