Function bgfx_sys::bgfx_get_direct_access_ptr
source · pub unsafe extern "C" fn bgfx_get_direct_access_ptr(
_handle: bgfx_texture_handle_t
) -> *mut c_void
Expand description
Returns texture direct access pointer.
@attention Availability depends on: BGFX_CAPS_TEXTURE_DIRECT_ACCESS
. This feature
is available on GPUs that have unified memory architecture (UMA) support.
@param[in] _handle Texture handle.
@returns Pointer to texture memory. If returned pointer is NULL
direct access
is not available for this texture. If pointer is UINTPTR_MAX
sentinel value
it means texture is pending creation. Pointer returned can be cached and it
will be valid until texture is destroyed.