pub struct Texture { /* private fields */ }Implementations§
Source§impl Texture
impl Texture
pub fn as_raw(&self) -> *mut WGPUTextureImpl
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§
impl Send for Texture
impl Sync for Texture
Auto Trait Implementations§
impl Freeze for Texture
impl RefUnwindSafe for Texture
impl Unpin for Texture
impl UnsafeUnpin for Texture
impl UnwindSafe for Texture
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