bgfx_update_texture_2d

Update 2D texture. Attention: It's valid to update only mutable texture. See bgfx::createTexture2D for more info.

  1. void bgfx_update_texture_2d(bgfx_texture_handle_t _handle, ushort _layer, byte _mip, ushort _x, ushort _y, ushort _width, ushort _height, const(bgfx_memory_t)* _mem, ushort _pitch)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    void
    bgfx_update_texture_2d
    (,
    ushort _layer
    ,
    byte _mip
    ,
    ushort _x
    ,
    ushort _y
    ,
    ushort _width
    ,
    ushort _height
    ,,
    ushort _pitch
    )
  2. da_bgfx_update_texture_2d bgfx_update_texture_2d;

Parameters

_handle bgfx_texture_handle_t

Texture handle.

_layer ushort

Layer in texture array.

_mip byte

Mip level.

_x ushort

X offset in texture.

_y ushort

Y offset in texture.

_width ushort

Width of texture block.

_height ushort

Height of texture block.

_mem const(bgfx_memory_t)*

Texture update data.

_pitch ushort

Pitch of input image (bytes). When _pitch is set to UINT16_MAX, it will be calculated internally based on _width.

Meta