bgfx_update_texture_cube

Update Cube texture. Attention: It's valid to update only mutable texture. See bgfx::createTextureCube for more info.

  1. void bgfx_update_texture_cube(bgfx_texture_handle_t _handle, ushort _layer, byte _side, 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_cube
    (,
    ushort _layer
    ,
    byte _side
    ,
    byte _mip
    ,
    ushort _x
    ,
    ushort _y
    ,
    ushort _width
    ,
    ushort _height
    ,,
    ushort _pitch
    )
  2. da_bgfx_update_texture_cube bgfx_update_texture_cube;

Parameters

_handle bgfx_texture_handle_t

Texture handle.

_layer ushort

Layer in texture array.

_side byte

Cubemap side BGFX_CUBE_MAP_<POSITIVE or NEGATIVE>_<X, Y or Z>, where 0 is +X, 1 is -X, 2 is +Y, 3 is -Y, 4 is +Z, and 5 is -Z. +----------+ |-z 2| | ^ +y | | | | Unfolded cube: | +---->+x | +----------+----------+----------+----------+ |+y 1|+y 4|+y 0|+y 5| | ^ -x | ^ +z | ^ +x | ^ -z | | | | | | | | | | | +---->+z | +---->+x | +---->-z | +---->-x | +----------+----------+----------+----------+ |+z 3| | ^ -y | | | | | +---->+x | +----------+

_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