Struct gfx_hal::pso::Rasterizer
source · [−]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>,
}
Expand description
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
sourceimpl Rasterizer
impl Rasterizer
Trait Implementations
sourceimpl Clone for Rasterizer
impl Clone for Rasterizer
sourcefn clone(&self) -> Rasterizer
fn clone(&self) -> Rasterizer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Rasterizer
impl Debug for Rasterizer
sourceimpl PartialEq<Rasterizer> for Rasterizer
impl PartialEq<Rasterizer> for Rasterizer
sourcefn eq(&self, other: &Rasterizer) -> bool
fn eq(&self, other: &Rasterizer) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Rasterizer) -> bool
fn ne(&self, other: &Rasterizer) -> bool
This method tests for !=
.
impl Copy for Rasterizer
impl StructuralPartialEq for Rasterizer
Auto Trait Implementations
impl RefUnwindSafe for Rasterizer
impl Send for Rasterizer
impl Sync for Rasterizer
impl Unpin for Rasterizer
impl UnwindSafe for Rasterizer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more