pub struct Rasterizer {
pub viewport: Viewport,
pub cull: Cull,
pub front_counter_clockwise: bool,
pub depth: Option<DepthState>,
}Expand description
The fixed-function state of a draw.
Fields§
§viewport: ViewportWhere clip space lands in the targets.
cull: CullWhich facing is dropped.
front_counter_clockwise: boolWhether a counter-clockwise triangle (y down) is front facing.
depth: Option<DepthState>The depth test; None: no depth buffer.
Trait Implementations§
Source§impl Clone for Rasterizer
impl Clone for Rasterizer
impl Copy for Rasterizer
Source§impl Debug for Rasterizer
impl Debug for Rasterizer
Source§impl PartialEq for Rasterizer
impl PartialEq for Rasterizer
impl StructuralPartialEq for Rasterizer
Auto Trait Implementations§
impl Forget for Rasterizer
impl Freeze for Rasterizer
impl RefUnwindSafe for Rasterizer
impl Send for Rasterizer
impl Sync for Rasterizer
impl Unpin for Rasterizer
impl UnsafeUnpin for Rasterizer
impl UnwindSafe for Rasterizer
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