oarust 0.11.0

GPU-first semantic computing engine written in Rust
// @generated by tool/gen/fn/generate.py; DO NOT EDIT.
// schema=viewer_types.json schema_version=1 generator_version=64
// schema_sha256=7b66a5ca49a2ff27bb49beb310d9c0bd0860c479355149347004ce3e676c1452
use super::config::{ViewerAudioView, ViewerCanvasBackground, ViewerMode};
use crate::input::{Key, MotionSpeed};
use crate::ui::UiStyle;
#[derive(Clone, Debug)]
pub struct ViewerConfig {
	pub mode: ViewerMode,
	pub path: String,
	pub title: String,
	pub width: u32,
	pub height: u32,
	pub style: UiStyle,
	pub motion_speed: MotionSpeed,
	pub show_help: bool,
	pub show_stats: bool,
	pub show_timeline: bool,
	pub vsync: bool,
	pub loop_media: bool,
	pub start_playing: bool,
	pub auto_hide_controls: bool,
	pub controls_hide_delay_ms: u32,
	pub canvas_background: ViewerCanvasBackground,
	pub show_canvas_grid: bool,
	pub audio_view: ViewerAudioView,
	pub audio_waveform_bins: u32,
	pub audio_analysis_frames: u32,
	pub audio_fft_size: u32,
	pub audio_hop_size: u32,
	pub audio_mel_bins: u32,
	pub audio_ring_ms: u32,
	pub key_quit: Key,
	pub key_quit_q: Key,
	pub key_red: Key,
	pub key_green: Key,
	pub key_blue: Key,
	pub key_alpha: Key,
	pub key_rgb: Key,
	pub key_zoom_in: Key,
	pub key_zoom_out: Key,
	pub key_zoom_fit: Key,
	pub key_zoom_100: Key,
	pub key_canvas_background: Key,
	pub key_canvas_grid: Key,
}

#[derive(Clone, Copy, Debug, Default)]
pub struct ViewerLiveCapabilities {
	/// Source requests raw platform events before Viewer focus/popup ownership.
	pub receives_events: bool,
	/// Source publishes a GPU-dependency event for its rendered resources.
	pub publishes_render_dependency: bool,
	/// Source wants the exact Viewer submission event after each present.
	pub retains_consumer_completion: bool,
}

#[derive(Clone, Debug)]
pub struct TrainingViewerConfig {
	/// Window title shown in the header card.
	pub title: String,
	/// Samples retained per metric series (minimum 2).
	pub history_capacity: u32,
	/// Maximum distinct metric cards (clamped to 1..=12).
	pub max_metric_plots: u32,
	/// Append per-step GPU milliseconds to the series list.
	pub show_gpu_timing: bool,
	/// Append per-step wall-clock milliseconds to the series list.
	pub show_wall_timing: bool,
	/// Show the published preview texture panel.
	pub show_preview: bool,
}