Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

start_recording_raw

Function start_recording_raw 

Source
pub unsafe fn start_recording_raw(
    buffer: *mut u32,
    words: usize,
) -> ActiveRecording
Expand description

Record every super::write_command into buffer instead of the port, until the returned ActiveRecording is ended or dropped. The ready-waits return at once while recording.

Display-control writes and DMA are not recorded: do not change display state inside a recording, and upload images only through pause_recording (psx-vram’s uploads do).

§Panics

In debug builds, if a recording is already open. Release builds close that one first, as dropping its guard would.

§Safety

buffer must be valid for words word writes and 4-byte aligned. It must stay live and unmodified (apart from CommandRecording::link_to) until the recording is closed, which a leaked ActiveRecording never does, and after that until every walk of the recording has finished.