#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub struct InstructionBudget(pub usize);
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub struct AdvanceResult {
pub instructions: usize,
pub running: bool,
pub guest_tick: u32,
}
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct VideoFrame {
pub width: u32,
pub height: u32,
pub format: PixelFormat,
pub pixels: Vec<u8>,
}
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum PixelFormat {
Rgba8,
}
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct AudioChunk {
pub format: AudioFormat,
pub samples: Vec<u8>,
}
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum AudioFormat {
Unsigned8BitMono { sample_rate_hz: u32 },
}