repame-shell 0.3.39

Repose platform runner wrappers, sim stepping, viewport mount, and gamepad polling
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Shutdown-time pipeline-cache persistence.

use repame_save::AppId;
use repose_render_wgpu::CallbackResources;

/// Flushes every named scene batch's pipeline cache on background threads.
/// Call this before dropping the device, from a `Quit` shutdown hook.
pub fn flush_pipeline_caches(
    app: AppId,
    device: &wgpu::Device,
    resources: &CallbackResources,
    ids: &[String],
) {
    for id in ids {
        repame_view3d::pipeline_cache_io::flush(id, app, device, resources);
    }
}