pub trait Texture<H: Handle> {
// Required methods
fn handle(&self) -> &H;
fn wgpu_texture(&self) -> &Texture;
// Provided methods
fn wgpu_texture_usage(&self) -> TextureUsages { ... }
fn size(&self) -> Dimension { ... }
fn canvas(&self) -> Canvas<'_, H> { ... }
}
Expand description
A G2d texture.
A texture can be any object which has a G2d Handle and a wgpu::Texture
.
Required Methods§
sourcefn wgpu_texture(&self) -> &Texture
fn wgpu_texture(&self) -> &Texture
Returns the wgpu::Texture
that this Texture wraps.