34 lines
913 B
Zig
34 lines
913 B
Zig
//! ----------------------------------------------------
|
|
//! ----------------------------------------------------
|
|
|
|
//
|
|
// PRIVATE
|
|
//
|
|
|
|
const App = @import("app");
|
|
const lifetime = @import("system/lifetime.zig");
|
|
|
|
//
|
|
// PUBLIC
|
|
//
|
|
|
|
pub const ShaderCache = @import("resource/shader_cache.zig");
|
|
pub const PipelineCache = @import("resource/pipeline_cache.zig");
|
|
pub const MeshCache = @import("resource/mesh_cache.zig");
|
|
|
|
/// ----------------------------------------------------
|
|
/// ----------------------------------------------------
|
|
pub const plugin: App.plugin.Plugin = .{
|
|
.name = "Cache",
|
|
.build = build,
|
|
};
|
|
|
|
/// ----------------------------------------------------
|
|
/// ----------------------------------------------------
|
|
fn build(
|
|
_: *App.plugin.Plugin,
|
|
app: *App,
|
|
) !void {
|
|
try app.schedules.add(App.stage.init, lifetime.init);
|
|
try app.schedules.add(App.stage.deinit, lifetime.deinit);
|
|
}
|