Trait gfx_texture::CreateTexture[][src]

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

Implemented by textures for creation.

Required methods

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

Create texture from memory.

Loading content...

Implementors

impl<F, R, C> CreateTexture<TextureContext<F, R, C>> for Texture<R> where
    F: Factory<R>,
    R: Resources,
    C: CommandBuffer<R>, 
[src]

Loading content...