Trait texture::CreateTexture[][src]

pub trait CreateTexture<F>: TextureOp<F> + ImageSize + Sized {
    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.

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.

Loading content...

Implementors

Loading content...