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

average_cached_z3

Function average_cached_z3 

Source
pub fn average_cached_z3(depths: [u16; 3]) -> u16
Expand description

Reload three cached projected depths into the GTE SZ FIFO and compute OTZ.

This is the indexed-mesh counterpart to average_z_triangle. It keeps cached vertex projection while using the PS1’s AVSZ3 unit instead of a software 64-bit multiply for every face. The configured ZSF3 weight is read from GTE control register 29.