khora_core/renderer/traits/mod.rs
1// Copyright 2025 eraflo
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! Defines the core architectural traits for the rendering subsystem.
16//!
17//! This module contains the fundamental contracts that decouple the engine's rendering
18//! logic from any specific graphics backend.
19//!
20//! - [`GraphicsDevice`]: The main interface for creating and managing GPU resources.
21//! - [`CommandRecorder`]: An interface for recording GPU commands.
22//! - [`RenderSystem`]: A high-level trait representing the entire rendering pipeline.
23//! - [`GraphicsBackendSelector`]: A trait for selecting the appropriate graphics backend.
24//! - [`GpuProfiler`]: An interface for performance profiling on the GPU.
25
26mod backend_selector;
27mod command_recorder;
28mod graphics_device;
29mod profiler;
30mod render_system;
31
32pub use self::backend_selector::GraphicsBackendSelector;
33pub use self::command_recorder::*;
34pub use self::graphics_device::GraphicsDevice;
35pub use self::profiler::*;
36pub use self::render_system::RenderSystem;