Module renderer

Module renderer 

Source
Expand description

Provides the public, backend-agnostic rendering contracts for the Khora Engine.

This module defines the “common language” for all rendering operations. It contains the abstract traits (like GraphicsDevice), data structures (like [BufferDescriptor]), and error types that form the stable, public-facing API for rendering.

Following the CLAD architecture, this module defines the ‘what’ of rendering, while the ‘how’ is handled by a concrete backend implementation in the khora-infra crate (e.g., a WGPU backend) which implements these traits. The khora-lanes and khora-agents then use these traits to perform their work without needing to know the specifics of the underlying graphics API.

Re-exports§

pub use self::error::PipelineError;
pub use self::error::RenderError;
pub use self::error::ResourceError;
pub use self::error::ShaderError;
pub use self::forward_plus::ForwardPlusTileConfig;
pub use self::forward_plus::GpuLight;
pub use self::forward_plus::LightCullingUniforms;
pub use self::forward_plus::TileSize;
pub use self::light::DirectionalLight;
pub use self::light::LightType;
pub use self::light::PointLight;
pub use self::light::SpotLight;
pub use self::traits::GraphicsDevice;
pub use self::traits::RenderSystem;

Modules§

api
Backend-agnostic rendering API.
error
Defines the hierarchy of error types for the rendering subsystem.
forward_plus
Defines data structures for Forward+ (Tiled Forward) rendering.
light
Defines light types for the rendering system.
traits
Defines the core architectural traits for the rendering subsystem.