pub unsafe fn get_hw_render_interface(
callback: retro_environment_t,
) -> Option<retro_hw_render_interface>
Expand description
Unstable Returns an API specific rendering interface for accessing API specific data. Not all HW rendering APIs support or need this. The contents of the returned pointer is specific to the rendering API being used. See the various headers like libretro_vulkan.h, etc.
get_hw_render_interface
cannot be called before retro_hw_context_reset_callback
has been called.
Similarly, after retro_hw_context_destroyed_callback
returns, the contents of the HW_RENDER_INTERFACE are invalidated.
TODO: Set a status flag in retro_hw_context_reset_callback
and retro_hw_context_destroyed_callback
to force the mentioned call restrictions.
ยงThis feature is unstable and guarded by the unstable-env-commands
feature flag.
Please be advised that this feature might change without further notice and no guarantees about its stability can be made.