Crate onedrop

Crate onedrop 

Source
Expand description

OneDrop CLI - Command-line interface for MilkDrop visualizations

StructsΒ§

Cli πŸ”’
StrictResult πŸ”’
One row of the validate --strict CSV. Mirrors the fields of tools/src/sample.rs::PresetResult so the long-tail triage workflow works the same way whether you reach for the CLI or the bench tool.

EnumsΒ§

Commands πŸ”’
DumpKind πŸ”’

FunctionsΒ§

bucket_eval_error πŸ”’
Coarse-grained classification of an eval error message. Matches the buckets used by tools/src/sample.rs so a CLI run and a bench run produce comparable stats.
cmd_benchmark πŸ”’
Run frames frames through the engine and print per-frame timing statistics. The first frame is excluded from the summary (compile + upload one-shot costs would skew the mean).
cmd_compile_shaders πŸ”’
Iterate .milk files in directory, attempt to compile each preset’s comp_shader HLSL through the user-shader pipeline, and write a CSV report (name,has_comp_shader,parse_ok,compile_ok,error_kind,error_excerpt).
cmd_dump_shader πŸ”’
Run a preset’s warp_shader / comp_shader HLSL through the translator and print the resulting WGSL on stdout. Failures print the translator’s error to stderr and continue (so --kind=both still emits the other shader). Exit code is non-zero only when nothing at all could be emitted.
cmd_info πŸ”’
cmd_list πŸ”’
cmd_list_audio πŸ”’
cmd_render πŸ”’
cmd_validate πŸ”’
cmd_validate_strict_dir πŸ”’
Strict mode against a directory: walk every .milk file, run the pipeline, emit a CSV report, and print a stage-by-stage summary so the long tail can be triaged without re-reading the CSV.
csv_escape πŸ”’
first_line πŸ”’
main πŸ”’
parse_dump_kind πŸ”’
parse_mesh_size πŸ”’
Parse --mesh-size arg: accepts named presets (low, medium, high, ultra) or an explicit COLSxROWS form (e.g. 64x48). Returns the resolved (cols, rows). Values are clamped to MD2’s [2, 192] Γ— [2, 96] window downstream by MilkRenderer::set_mesh_size.
print_strict_summary πŸ”’
print_top_buckets πŸ”’
report_strict_row_human πŸ”’
Single-preset strict report renderer for validate --strict <file>.
run_strict_pipeline πŸ”’
Run the full pipeline against one preset, collecting per-stage status.
strict_first_line πŸ”’