Skip to main content

write_texture

Function write_texture 

Source
pub fn write_texture(
    t: Texture,
    mip: u32,
    x: u32,
    y: u32,
    w: u32,
    h: u32,
    rgba: &[u8],
)
Expand description

Upload a tightly packed RGBA8 region (rgba.len() == w * h * 4) of mip level mip.