Struct three_d::core::render_states::RenderStates [−][src]
pub struct RenderStates {
pub write_mask: WriteMask,
pub clip: Clip,
pub depth_test: DepthTest,
pub blend: Blend,
pub cull: Cull,
}
Expand description
A set of render specific states that has to be specified at each render call.
Fields
write_mask: WriteMask
Defines which channels (red, green, blue, alpha and depth) to write to in a render call.
clip: Clip
Defines the rectangle of pixels to write to in a render call. If none, all pixels in the current render target are possibly written into.
depth_test: DepthTest
Defines the depth test in a render call. The depth test determines whether or not a fragment from the current render call should be discarded when comparing its depth with the depth of the current fragment.
blend: Blend
Defines which type of blending to use for a render call. Blending allows combining each color channel of a render call with the color already in the color channels of the render target. This is usually used to simulate transparency.
cull: Cull
Defines whether the triangles that are backfacing, frontfacing or both should be skipped in a render call.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RenderStates
impl Send for RenderStates
impl Sync for RenderStates
impl Unpin for RenderStates
impl UnwindSafe for RenderStates
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more