pub struct RendererConfig {
pub width: u32,
pub height: u32,
pub target_slot_count: u32,
pub max_vertex_count: u32,
pub max_index_count: u32,
pub clear_color: Color,
pub light_direction: [f32; 3],
pub ambient: f32,
pub max_materials_per_scene: u32,
}Expand description
Configuration for one headless Renderer target ring.
Fields§
§width: u32Target width in pixels. Must be non-zero.
height: u32Target height in pixels. Must be non-zero.
target_slot_count: u32Number of simultaneously retained target slots (1–4).
max_vertex_count: u32Maximum vertex count per mesh frame. Zero disables the graphics path.
max_index_count: u32Maximum index count per mesh frame. Zero disables the graphics path.
clear_color: ColorBackground clear color (linear RGBA, each component 0.0–1.0).
light_direction: [f32; 3]Normalized light direction (XYZ) pointing from the surface toward the light; used by the vertex-color-lit and surface paths.
ambient: f32Ambient light intensity (0.0–1.0) for the vertex-color-lit path.
max_materials_per_scene: u32Maximum number of distinct materials per begin_frame_scene call.
Must be in [1, 64]. Each material slot allocates one UBO and one
descriptor set per render target slot. Default is 8.