pub struct ClipState {
pub reference: u32,
pub role: ClipRole,
}Expand description
The stencil state one draw needs.
reference is what the stencil is compared against, stated directly rather
than derived from a nesting depth, so the HAL needs no notion of a clip
stack: a narrowing draw compares against the depth it is leaving and a
widening draw against the one it is leaving behind, and which is which is
the recorder’s business.
Fields§
§reference: u32§role: ClipRoleImplementations§
Trait Implementations§
impl Copy for ClipState
impl Eq for ClipState
impl StructuralPartialEq for ClipState
Auto Trait Implementations§
impl Freeze for ClipState
impl RefUnwindSafe for ClipState
impl Send for ClipState
impl Sync for ClipState
impl Unpin for ClipState
impl UnsafeUnpin for ClipState
impl UnwindSafe for ClipState
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