pub trait PixelPath: DeviceState {
// Required methods
fn mix(&mut self, timing: &VideoTiming, rows: Vec<Vec<u16>>) -> Vec<u16>;
fn as_any_mut(&mut self) -> &mut dyn Any;
// Provided methods
fn claims(&self) -> Vec<(usize, usize)> { ... }
fn read(&mut self, address: u32, mclk: i64, pins: &mut BoardPins<'_>) -> u8 { ... }
fn write(
&mut self,
address: u32,
value: u8,
mclk: i64,
pins: &mut BoardPins<'_>,
) { ... }
fn reset(&mut self, kind: ResetKind, pins: &mut BoardPins<'_>) { ... }
}Expand description
Where the VDC(s) meet the VCE. The default is VDC 1 straight into the VCE; the SuperGrafx’s VPC replaces it, mixing two VDC lines. Line granularity, not dot.
Each row is the VDC’s 9-bit pixel values for one line: bit 8 sprite/background, bits 7-4 palette, bits 3-0 colour [hw: sgxtech], with palette index 0x000/0x100 for the backdrop/overscan colour. Returns the row handed to the VCE.
A path may also claim pages (the VPC decodes $FF:0000-03FF): claims, read and write
default to none.