pub fn update_texture_2d(
    handle: &Texture,
    layer: u16,
    mip: u8,
    x: u16,
    y: u16,
    width: u16,
    height: u16,
    mem: &Memory,
    pitch: u16
)
Expand description
  • handle: Texture handle.
  • layer: Layer in texture array.
  • mip: Mip level.
  • x: X offset in texture.
  • y: Y offset in texture.
  • width: Width of texture block.
  • height: Height of texture block.
  • mem: Texture update data.
  • pitch: Pitch of input image (bytes). When _pitch is set to UINT16_MAX, it will be calculated internally based on _width.