pub fn average_z3_ordering_depth(depths: [u16; 3], zsf3: i16) -> u16Expand description
Compute AVSZ3’s saturated OTZ result from three cached projected depths.
This pure-software form is useful for host processing and for callers that
cannot disturb the live GTE FIFO. MIPS render loops should normally prefer
average_cached_z3. The arithmetic is exactly the GTE operation: sum the
unsigned 16-bit depths, multiply by signed ZSF3, shift right by 12, then
saturate to OTZ’s unsigned 16-bit range.