Trait texture::CreateTexture [] [src]

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

Implemented by textures for creation.

Associated Types

type Error

The error when creating texture.

Required Methods

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

Create texture from memory.

Implementors