Skip to main content

Module shaders

Module shaders 

Source
Expand description

Built-in shader sources for the Khora Engine rendering system.

Rendering lanes consume shaders through the PipelineSystem backend (khora-infra, naga_oil composer + validation). This module exposes the two remaining include_str! constants still required by infra-side consumers (the egui editor overlay and the text renderer) — they take raw WGSL strings, not pipeline handles.

New lanes / pipelines should be added to the backend’s pipeline module table and looked up by name; no new _WGSL constants should appear here.

Constants§

EGUI_WGSL
Shader for the egui editor overlay. Consumed by khora_infra::WgpuRenderSystem::create_editor_overlay_and_shell as a raw &str.
TEXT_WGSL
Shader for text rendering. Consumed by khora_infra::StandardTextRenderer::new as a raw String.