Files
wsg/lib/conf.rs
T
Jérôme Bousquié 7cc1fb845f renderer render
2026-07-05 08:00:58 +02:00

11 lines
535 B
Rust

//! # Configuration Module
//!
//! Holds shared constants for the WSG library, such as shader paths and other compilation-time values.
//! This module centralizes configuration so that it can be imported by any submodule without duplicating literals.
/// Path to the default WGSL shader file (runtime).
pub const BASIC_SHADER_PATH: &str = "assets/shaders/basic_shader.wgsl";
/// The basic WGSL shader source, embedded at compile time as a fallback.
pub const BASIC_SHADER: &str = include_str!("../assets/shaders/basic_shader.wgsl");