bgfx_override_internal_texture

Override internal texture by creating new texture. Previously created internal texture will released. Attention: It's expected you understand some bgfx internals before you use this call.

  1. ulong bgfx_override_internal_texture(bgfx_texture_handle_t _handle, ushort _width, ushort _height, byte _numMips, bgfx_texture_format_t _format, ulong _flags)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    ulong
    bgfx_override_internal_texture
  2. da_bgfx_override_internal_texture bgfx_override_internal_texture;

Parameters

_handle bgfx_texture_handle_t

Texture handle.

_width ushort

Width.

_height ushort

Height.

_numMips byte

Number of mip-maps.

_format bgfx_texture_format_t

Texture format. See: TextureFormat::Enum.

_flags ulong

Texture creation (see BGFX_TEXTURE_*.), and sampler (see BGFX_SAMPLER_*) flags. Default texture sampling mode is linear, and wrap mode is repeat. - BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP] - Mirror or clamp to edge wrap mode. - BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC] - Point or anisotropic sampling.

Return Value

Type: ulong

Native API pointer to texture. If result is 0, texture is not created yet from the main thread. Warning: Must be called only on render thread.

Meta