#[repr(C)]pub struct RasterizationStateDescriptor {
pub front_face: FrontFace,
pub cull_mode: CullMode,
pub depth_bias: i32,
pub depth_bias_slope_scale: f32,
pub depth_bias_clamp: f32,
}
Expand description
Describes the state of the rasterizer in a render pipeline.
Fields§
§front_face: FrontFace
§cull_mode: CullMode
§depth_bias: i32
§depth_bias_slope_scale: f32
§depth_bias_clamp: f32
Trait Implementations§
Source§impl Clone for RasterizationStateDescriptor
impl Clone for RasterizationStateDescriptor
Source§fn clone(&self) -> RasterizationStateDescriptor
fn clone(&self) -> RasterizationStateDescriptor
Returns a duplicate 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 RasterizationStateDescriptor
impl Debug for RasterizationStateDescriptor
Source§impl Default for RasterizationStateDescriptor
impl Default for RasterizationStateDescriptor
Source§fn default() -> RasterizationStateDescriptor
fn default() -> RasterizationStateDescriptor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RasterizationStateDescriptor
impl<'de> Deserialize<'de> for RasterizationStateDescriptor
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RasterizationStateDescriptor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RasterizationStateDescriptor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RasterizationStateDescriptor
impl PartialEq for RasterizationStateDescriptor
Source§fn eq(&self, other: &RasterizationStateDescriptor) -> bool
fn eq(&self, other: &RasterizationStateDescriptor) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for RasterizationStateDescriptor
impl Serialize for RasterizationStateDescriptor
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RasterizationStateDescriptor
Auto Trait Implementations§
impl Freeze for RasterizationStateDescriptor
impl RefUnwindSafe for RasterizationStateDescriptor
impl Send for RasterizationStateDescriptor
impl Sync for RasterizationStateDescriptor
impl Unpin for RasterizationStateDescriptor
impl UnwindSafe for RasterizationStateDescriptor
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