pub struct CoreTexture {
pub(crate) wgpu_texture: Arc<Texture>,
}Available on
wgpu_core only.Fields§
§wgpu_texture: Arc<Texture>Implementations§
Trait Implementations§
Source§impl Clone for CoreTexture
impl Clone for CoreTexture
Source§fn clone(&self) -> CoreTexture
fn clone(&self) -> CoreTexture
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoreTexture
impl Debug for CoreTexture
Source§impl From<CoreTexture> for DispatchTexture
impl From<CoreTexture> for DispatchTexture
Source§fn from(value: CoreTexture) -> Self
fn from(value: CoreTexture) -> Self
Converts to this type from the input type.
Source§impl Hash for CoreTexture
impl Hash for CoreTexture
Source§impl Ord for CoreTexture
impl Ord for CoreTexture
Source§impl PartialEq for CoreTexture
impl PartialEq for CoreTexture
Source§impl PartialOrd for CoreTexture
impl PartialOrd for CoreTexture
Source§impl TextureInterface for CoreTexture
impl TextureInterface for CoreTexture
fn create_view(&self, desc: &TextureViewDescriptor<'_>) -> DispatchTextureView
fn destroy(&self)
fn size(&self) -> Extent3d
fn mip_level_count(&self) -> u32
fn sample_count(&self) -> u32
fn dimension(&self) -> TextureDimension
fn format(&self) -> TextureFormat
fn usage(&self) -> TextureUsages
Source§unsafe fn mark_externally_initialized(&self)
unsafe fn mark_externally_initialized(&self)
Marks this texture’s contents as already initialized, skipping wgpu’s
lazy zero-initialization of it. Read more
impl Eq for CoreTexture
Auto Trait Implementations§
impl Freeze for CoreTexture
impl !RefUnwindSafe for CoreTexture
impl Send for CoreTexture
impl Sync for CoreTexture
impl Unpin for CoreTexture
impl !UnwindSafe for CoreTexture
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more