pub struct Rasterization {
pub depth_clamp: bool,
pub rasterizer_discard: bool,
pub polygon_mode: PolygonMode,
pub cull_mode: Option<CullMode>,
pub front_face: FrontFace,
pub depth_bias: bool,
}
Expand description
Rasterizer Descriptor.
Controls the rasterization process for converting primitives into fragments.
Fields§
§depth_clamp: bool
Clamp depth values of fragments to the z-planes instead of clipping.
rasterizer_discard: bool
Discard primitives before rasterization.
polygon_mode: PolygonMode
Specifies how polygons will be rendered.
cull_mode: Option<CullMode>
§front_face: FrontFace
Specifes the winding order for triangles.
The winding order determines which the visible face of a triangle.
depth_bias: bool
Trait Implementations§
Source§impl Clone for Rasterization
impl Clone for Rasterization
Source§fn clone(&self) -> Rasterization
fn clone(&self) -> Rasterization
Returns a copy 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 Rasterization
impl Debug for Rasterization
Source§impl Default for Rasterization
impl Default for Rasterization
Source§fn default() -> Rasterization
fn default() -> Rasterization
OpenGL default settings for rasterization
impl Copy for Rasterization
Auto Trait Implementations§
impl Freeze for Rasterization
impl RefUnwindSafe for Rasterization
impl Send for Rasterization
impl Sync for Rasterization
impl Unpin for Rasterization
impl UnwindSafe for Rasterization
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