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
impl Copy for RenderState
Source§impl Debug for RenderState
impl Debug for RenderState
Source§impl Default for RenderState
impl Default for RenderState
Source§impl PartialEq for RenderState
impl PartialEq for RenderState
Source§impl Serialize for RenderState
impl Serialize for RenderState
impl StructuralPartialEq for RenderState
Auto Trait Implementations§
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