pub trait CreateTexture<F>: ImageSize + Sized {
    type Error;

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

Implemented by textures for creation.

Required Associated Types§

The error when creating texture.

Required Methods§

Create texture from memory.

Implementors§