pub unsafe extern "C" fn bgfx_override_internal_texture(
    _handle: bgfx_texture_handle_t,
    _width: u16,
    _height: u16,
    _numMips: u8,
    _format: bgfx_texture_format_t,
    _flags: u64
) -> usize
Expand description

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. @returns 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.

@param[in] _handle Texture handle. @param[in] _width Width. @param[in] _height Height. @param[in] _numMips Number of mip-maps. @param[in] _format Texture format. See: TextureFormat::Enum. @param[in] _flags 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.

@returns Native API pointer to texture. If result is 0, texture is not created yet from the main thread.