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[src][]

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>
[src][]

Create texture from memory.

Implementors