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

set_direct_access_guard

Function set_direct_access_guard 

Source
pub fn set_direct_access_guard(guard: fn())
Expand description

Register the function that makes direct GPU access safe while a queued frame may be walking (psx_rt::present registers its wait_idle). It runs once, on the first direct command or display-control write or GPU DMA address store after arm_direct_access_guard, and is then disarmed.