pub struct RenderState {
pub blend: Option<Blend>,
pub depth: Option<DepthState>,
pub cull: Option<Cull>,
pub alpha_test: Option<AlphaTest>,
pub targets: [Option<TargetState>; 8],
pub stencil: Option<Stencil>,
pub depth_bias: Option<DepthBias>,
pub fill: Option<Fill>,
pub front_counter_clockwise: Option<bool>,
}Expand description
Fixed-function state as the source stores it; each None where it states none. D3D12-shaped: blend is render
target 0’s blend (what a consumer with one render target reads), and targets has every render target’s blend
and write mask where the source states them, with targets[0]’s blend equal to blend (a consumer’s
verification checks it).
Fields§
§blend: Option<Blend>Blending of render target 0; None where it is not blended.
depth: Option<DepthState>The depth test and write.
cull: Option<Cull>The face culling.
alpha_test: Option<AlphaTest>The alpha test.
targets: [Option<TargetState>; 8]Per render target, in order.
stencil: Option<Stencil>The stencil test, where one is enabled.
depth_bias: Option<DepthBias>The depth bias.
fill: Option<Fill>How triangles are filled.
front_counter_clockwise: Option<bool>Whether counter-clockwise triangles are front faces.
Implementations§
Trait Implementations§
Source§impl Clone for RenderState
impl Clone for RenderState
Source§fn clone(&self) -> RenderState
fn clone(&self) -> RenderState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RenderState
Source§impl Debug for RenderState
impl Debug for RenderState
Source§impl Default for RenderState
impl Default for RenderState
Source§fn default() -> RenderState
fn default() -> RenderState
Returns the “default value” for a type. Read more
Source§impl PartialEq for RenderState
impl PartialEq for RenderState
Source§impl Serialize for RenderState
impl Serialize for RenderState
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 RenderState
Auto Trait Implementations§
impl Forget for RenderState
impl Freeze for RenderState
impl RefUnwindSafe for RenderState
impl Send for RenderState
impl Sync for RenderState
impl Unpin for RenderState
impl UnsafeUnpin for RenderState
impl UnwindSafe for RenderState
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