Trait texture::UpdateTexture [] [src]

pub trait UpdateTexture<F>: ImageSize + Sized {
    type Error;
    fn update<S: Into<[u32; 2]>>(&mut self, factory: &mut F, format: Format, memory: &[u8], size: S) -> Result<(), Self::Error>;
}

Implemented by textures for updating.

Associated Types

type Error

The error when updating texture.

Required Methods

fn update<S: Into<[u32; 2]>>(&mut self, factory: &mut F, format: Format, memory: &[u8], size: S) -> Result<(), Self::Error>

Update texture.

Implementors