pub struct DepthInputs {
pub current_depth: u16,
pub current_dz: u8,
pub current_coverage: i32,
pub z_compare: bool,
pub z_mode: u8,
pub force_blend: bool,
pub aa_enable: bool,
}Expand description
The Z-buffer read and render-mode flags Rdp::depth_test needs beyond the
incoming pixel’s own z/dz (grouped so the signature stays legible).
Fields§
§current_depth: u16The 14-bit compressed depth already stored for this pixel.
current_dz: u8The 4-bit dz already stored for this pixel.
current_coverage: i32The coverage already accumulated in the framebuffer pixel.
z_compare: boolSet Other Modes z_compare_en: run the depth comparison at all.
z_mode: u8Set Other Modes z_mode: 0 opaque, 1 interpenetrating, 2 transparent, 3 decal.
force_blend: boolSet Other Modes force_blend.
aa_enable: boolAnti-aliasing enable (Set Other Modes antialias_en).
Trait Implementations§
Source§impl Clone for DepthInputs
impl Clone for DepthInputs
Source§fn clone(&self) -> DepthInputs
fn clone(&self) -> DepthInputs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DepthInputs
impl Debug for DepthInputs
Source§impl Default for DepthInputs
impl Default for DepthInputs
Source§fn default() -> DepthInputs
fn default() -> DepthInputs
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DepthInputs
impl<'de> Deserialize<'de> for DepthInputs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for DepthInputs
impl Serialize for DepthInputs
impl Copy for DepthInputs
Auto Trait Implementations§
impl Freeze for DepthInputs
impl RefUnwindSafe for DepthInputs
impl Send for DepthInputs
impl Sync for DepthInputs
impl Unpin for DepthInputs
impl UnsafeUnpin for DepthInputs
impl UnwindSafe for DepthInputs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more