Trait texture::Rgba8Texture
[−]
[src]
pub trait Rgba8Texture<F>: ImageSize + Sized { type Error; fn create<S: Into<[u32; 2]>>(factory: &mut F, memory: &[u8], size: S, settings: &TextureSettings) -> Result<Self, Self::Error>; fn update<S: Into<[u32; 2]>>(&mut self, factory: &mut F, memory: &[u8], size: S) -> Result<(), Self::Error>; }
Implemented by rgba8 textures.
Associated Types
type Error
The error when creating or updating texture.
Required Methods
fn create<S: Into<[u32; 2]>>(factory: &mut F, memory: &[u8], size: S, settings: &TextureSettings) -> Result<Self, Self::Error>
Create rgba8 texture from memory.
fn update<S: Into<[u32; 2]>>(&mut self, factory: &mut F, memory: &[u8], size: S) -> Result<(), Self::Error>
Update rgba8 texture.