Function bgfx_sys::bgfx_update_texture_2d
source · pub unsafe extern "C" fn bgfx_update_texture_2d(
_handle: bgfx_texture_handle_t,
_layer: u16,
_mip: u8,
_x: u16,
_y: u16,
_width: u16,
_height: u16,
_mem: *const bgfx_memory_t,
_pitch: u16
)
Expand description
Update 2D texture.
@attention It’s valid to update only mutable texture. See bgfx::createTexture2D
for more info.
@param[in] _handle Texture handle. @param[in] _layer Layer in texture array. @param[in] _mip Mip level. @param[in] _x X offset in texture. @param[in] _y Y offset in texture. @param[in] _width Width of texture block. @param[in] _height Height of texture block. @param[in] _mem Texture update data. @param[in] _pitch Pitch of input image (bytes). When _pitch is set to UINT16_MAX, it will be calculated internally based on _width.