Initial commit

Rust workspace for VIctory: PE analysis, loader, HLE skeleton,
DXBC/DXIL parsing with a GFX10 decoder, conversion cache, CLI and
asset-policy enforcement.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
MarvisandClaude Sonnet 5.5 committed 2026-11-23 01:15:26 +01:00
commit f4504f6413
69 files changed
+7952

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
//! Offline conversion of the user's game data into host formats.
//!
//! Everything here runs on the user's machine, reads the user's files and
//! writes into the user's cache. Nothing produced here is ever committed:
//! derived data is still game data (docs/asset-policy.md).
//!
//! The unit of work is a [`Converter`]: bytes in, bytes out, deterministic.
//! Results are stored in a content-addressed [`Cache`] keyed by converter
//! id, converter version and input bytes, so re-running the pipeline after
//! a game update or a converter fix only redoes what changed.
mod cache;
pub use cache::{Cache, CacheKey};
/// A deterministic transformation of one input into one output.
pub trait Converter: Send + Sync {
/// Stable identifier, e.g. `"texture.detile"`. Part of the cache key.
fn id(&self) -> &'static str;
/// Bump whenever the output for a given input changes.
fn version(&self) -> u32;
fn convert(&self, input: &[u8]) -> anyhow::Result<Vec<u8>>;
}