NYXEngine/src/plugins/cache/root.zig

35 lines
913 B
Zig
Raw Normal View History

//! ----------------------------------------------------
//! ----------------------------------------------------
//
// 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");
2026-07-29 01:15:31 +01:00
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);
}