Function bgfx_sys::bgfx_encoder_blit
source · pub unsafe extern "C" fn bgfx_encoder_blit(
_this: *mut bgfx_encoder_t,
_id: bgfx_view_id_t,
_dst: bgfx_texture_handle_t,
_dstMip: u8,
_dstX: u16,
_dstY: u16,
_dstZ: u16,
_src: bgfx_texture_handle_t,
_srcMip: u8,
_srcX: u16,
_srcY: u16,
_srcZ: u16,
_width: u16,
_height: u16,
_depth: u16
)
Expand description
Blit 2D texture region between two 2D textures.
@attention Destination texture must be created with BGFX_TEXTURE_BLIT_DST
flag.
@attention Availability depends on: BGFX_CAPS_TEXTURE_BLIT
.
@param[in] _id View id. @param[in] _dst Destination texture handle. @param[in] _dstMip Destination texture mip level. @param[in] _dstX Destination texture X position. @param[in] _dstY Destination texture Y position. @param[in] _dstZ If texture is 2D this argument should be 0. If destination texture is cube this argument represents destination texture cube face. For 3D texture this argument represents destination texture Z position. @param[in] _src Source texture handle. @param[in] _srcMip Source texture mip level. @param[in] _srcX Source texture X position. @param[in] _srcY Source texture Y position. @param[in] _srcZ If texture is 2D this argument should be 0. If source texture is cube this argument represents source texture cube face. For 3D texture this argument represents source texture Z position. @param[in] _width Width of region. @param[in] _height Height of region. @param[in] _depth If texture is 3D this argument represents depth of region, otherwise it’s unused.