Skip to main content

ss_scene_restore_device

Function ss_scene_restore_device 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_scene_restore_device( scene: *mut SsScene, ) -> i32
Expand description

Rebuild the GPU stack after a device loss and restore every player drawing into this window, resuming playback where it was interrupted.

SS_ERROR_GPU means the window has to be rebuilt from ss_scene_create.

ยงSafety

scene must be a live handle or null.