pub trait CreateTexture<F>: TextureOp<F> + ImageSize + Sized {
    // Required method
    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 Methods§

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

Create texture from memory.

Implementors§

source§

impl<F, R, C> CreateTexture<TextureContext<F, R, C>> for Texture<R>where F: Factory<R>, R: Resources, C: Buffer<R>,