Struct gfx_hal::pso::Rasterizer [−][src]
pub struct Rasterizer { pub polygon_mode: PolygonMode, pub cull_face: Face, pub front_face: FrontFace, pub depth_clamping: bool, pub depth_bias: Option<State<DepthBias>>, pub conservative: bool, pub line_width: State<f32>, }
Rasterization state.
Fields
polygon_mode: PolygonMode
How to rasterize this primitive.
cull_face: Face
Which face should be culled.
front_face: FrontFace
Which vertex winding is considered to be the front face for culling.
depth_clamping: bool
Whether or not to enable depth clamping; when enabled, instead of fragments being omitted when they are outside the bounds of the z-plane, they will be clamped to the min or max z value.
depth_bias: Option<State<DepthBias>>
What depth bias, if any, to use for the drawn primitives.
conservative: bool
Controls how triangles will be rasterized depending on their overlap with pixels.
line_width: State<f32>
Controls width of rasterized line segments.
Implementations
impl Rasterizer
[src]
impl Rasterizer
[src]Trait Implementations
impl Clone for Rasterizer
[src]
impl Clone for Rasterizer
[src]fn clone(&self) -> Rasterizer
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Rasterizer
[src]
impl Copy for Rasterizer
[src]impl PartialEq<Rasterizer> for Rasterizer
[src]
impl PartialEq<Rasterizer> for Rasterizer
[src]fn eq(&self, other: &Rasterizer) -> bool
[src]
fn ne(&self, other: &Rasterizer) -> bool
[src]
impl StructuralPartialEq for Rasterizer
[src]
impl StructuralPartialEq for Rasterizer
[src]Auto Trait Implementations
impl RefUnwindSafe for Rasterizer
impl RefUnwindSafe for Rasterizer
impl Send for Rasterizer
impl Send for Rasterizer
impl Sync for Rasterizer
impl Sync for Rasterizer
impl Unpin for Rasterizer
impl Unpin for Rasterizer
impl UnwindSafe for Rasterizer
impl UnwindSafe for Rasterizer