pub struct DepthResult {
pub depth_pass: bool,
pub blend_en: bool,
pub coverage_wrap: bool,
pub blend_shift: [u8; 2],
pub coverage_count: i32,
}Expand description
The outcome of a per-pixel depth test: whether the pixel is written, and the blend/coverage state the blender consumes.
Fields§
§depth_pass: boolThe pixel passes the depth test and is written.
blend_en: boolEnable the blender for this pixel (vs. an opaque overwrite).
coverage_wrap: boolCoverage overflowed (>= 8): the surface differs, wrap the coverage.
blend_shift: [u8; 2]The two blender coverage shifts ([dz→mem, mem→dz], each clamped 0..=4).
coverage_count: i32The (possibly interpenetrating-reduced) coverage count carried forward.
Trait Implementations§
Source§impl Clone for DepthResult
impl Clone for DepthResult
Source§fn clone(&self) -> DepthResult
fn clone(&self) -> DepthResult
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 DepthResult
impl Debug for DepthResult
Source§impl Default for DepthResult
impl Default for DepthResult
Source§fn default() -> DepthResult
fn default() -> DepthResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DepthResult
impl<'de> Deserialize<'de> for DepthResult
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 PartialEq for DepthResult
impl PartialEq for DepthResult
Source§impl Serialize for DepthResult
impl Serialize for DepthResult
impl Copy for DepthResult
impl Eq for DepthResult
impl StructuralPartialEq for DepthResult
Auto Trait Implementations§
impl Freeze for DepthResult
impl RefUnwindSafe for DepthResult
impl Send for DepthResult
impl Sync for DepthResult
impl Unpin for DepthResult
impl UnsafeUnpin for DepthResult
impl UnwindSafe for DepthResult
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