pub struct DawnTexture { /* private fields */ }Methods from Deref<Target = Texture>§
pub fn create_view( &self, descriptor: Option<&TextureViewDescriptor>, ) -> TextureView
pub fn create_error_view( &self, descriptor: Option<&TextureViewDescriptor>, ) -> TextureView
pub fn set_label(&self, label: String)
pub fn get_width(&self) -> u32
pub fn get_height(&self) -> u32
pub fn get_depth_or_array_layers(&self) -> u32
pub fn get_mip_level_count(&self) -> u32
pub fn get_sample_count(&self) -> u32
pub fn get_dimension(&self) -> TextureDimension
pub fn get_format(&self) -> TextureFormat
pub fn get_usage(&self) -> TextureUsage
pub fn get_texture_binding_view_dimension(&self) -> TextureViewDimension
pub fn destroy(&self)
pub fn pin(&self, usage: TextureUsage)
pub fn unpin(&self)
pub fn set_ownership_for_memory_dump(&self, owner_guid: u64)
Trait Implementations§
Source§impl Clone for DawnTexture
impl Clone for DawnTexture
Source§fn clone(&self) -> DawnTexture
fn clone(&self) -> DawnTexture
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 DawnTexture
impl Debug for DawnTexture
Source§impl Deref for DawnTexture
impl Deref for DawnTexture
Source§impl TextureInterface for DawnTexture
impl TextureInterface for DawnTexture
fn create_view(&self, desc: &TextureViewDescriptor<'_>) -> DispatchTextureView
fn destroy(&self)
Auto Trait Implementations§
impl Freeze for DawnTexture
impl RefUnwindSafe for DawnTexture
impl Send for DawnTexture
impl Sync for DawnTexture
impl Unpin for DawnTexture
impl UnsafeUnpin for DawnTexture
impl UnwindSafe for DawnTexture
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