Trait gfx_graphics::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]
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
impl<F, R, C> CreateTexture<TextureContext<F, R, C>> for Texture<R> where
C: Buffer<R>,
F: Factory<R>,
R: Resources,
[src]
C: Buffer<R>,
F: Factory<R>,
R: Resources,