Function bgfx_sys::bgfx_override_internal_texture_ptr
source · pub unsafe extern "C" fn bgfx_override_internal_texture_ptr(
_handle: bgfx_texture_handle_t,
_ptr: usize
) -> usize
Expand description
Override internal texture with externally created texture. Previously created internal texture will released. @attention It’s expected you understand some bgfx internals before you use this call. @warning Must be called only on render thread.
@param[in] _handle Texture handle. @param[in] _ptr Native API pointer to texture.
@returns Native API pointer to texture. If result is 0, texture is not created yet from the main thread.