Function bgfx_sys::bgfx_read_texture
source · pub unsafe extern "C" fn bgfx_read_texture(
_handle: bgfx_texture_handle_t,
_data: *mut c_void,
_mip: u8
) -> u32
Expand description
Read back texture content.
@attention Texture must be created with BGFX_TEXTURE_READ_BACK
flag.
@attention Availability depends on: BGFX_CAPS_TEXTURE_READ_BACK
.
@param[in] _handle Texture handle. @param[in] _data Destination buffer. @param[in] _mip Mip level.
@returns Frame number when the result will be available. See: bgfx::frame
.