bgfx_encoder_blit

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.

  1. void bgfx_encoder_blit(bgfx_encoder_t* _this, bgfx_view_id_t _id, bgfx_texture_handle_t _dst, byte _dstMip, ushort _dstX, ushort _dstY, ushort _dstZ, bgfx_texture_handle_t _src, byte _srcMip, ushort _srcX, ushort _srcY, ushort _srcZ, ushort _width, ushort _height, ushort _depth)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    void
    bgfx_encoder_blit
  2. da_bgfx_encoder_blit bgfx_encoder_blit;

Parameters

_id bgfx_view_id_t

View id.

_dst bgfx_texture_handle_t

Destination texture handle.

_dstMip byte

Destination texture mip level.

_dstX ushort

Destination texture X position.

_dstY ushort

Destination texture Y position.

_dstZ ushort

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.

_src bgfx_texture_handle_t

Source texture handle.

_srcMip byte

Source texture mip level.

_srcX ushort

Source texture X position.

_srcY ushort

Source texture Y position.

_srcZ ushort

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.

_width ushort

Width of region.

_height ushort

Height of region.

_depth ushort

If texture is 3D this argument represents depth of region, otherwise it's unused.

Meta