Type Definition solstice::image::MappedImage [−][src]
type MappedImage = Mapped<Image, Ix2>;
Implementations
impl MappedImage
[src]
pub fn new(
ctx: &mut Context,
texture_type: TextureType,
format: PixelFormat,
width: u32,
height: u32,
settings: Settings
) -> Result<Self, GraphicsError>
[src]
ctx: &mut Context,
texture_type: TextureType,
format: PixelFormat,
width: u32,
height: u32,
settings: Settings
) -> Result<Self, GraphicsError>
pub fn with_data(
ctx: &mut Context,
texture_type: TextureType,
format: PixelFormat,
width: u32,
height: u32,
data: Vec<u8>,
settings: Settings
) -> Result<Self, GraphicsError>
[src]
ctx: &mut Context,
texture_type: TextureType,
format: PixelFormat,
width: u32,
height: u32,
data: Vec<u8>,
settings: Settings
) -> Result<Self, GraphicsError>