RenderState class

Render state for building the pipeline The changes made on render state will not affect the created pipeline instances.

public class RenderState : IComparable<RenderState>, IDisposable


Name Description
RenderState() Constructor of RenderState


Name Description
Blend { get; set; } Enable or disable the fragment blending.
BlendColor { get; set; } Gets or sets the blend color where used in ConstantColor
CullFace { get; set; } Enable or disable cull face
CullFaceMode { get; set; } Gets or sets which face will be culled.
DepthFunction { get; set; } Gets or sets the compare function used in depth test
DepthMask { get; set; } Enable or disable the depth writing.
DepthTest { get; set; } Enable or disable the depth test.
DestinationBlendFactor { get; set; } Gets or sets how the color is blended.
FrontFace { get; set; } Gets or sets which order is front face.
PolygonMode { get; set; } Gets or sets the polygon’s render mode.
ScissorBox { get; set; } Gets or sets the scissor box
ScissorTest { get; set; } Enable or disable scissor test
SourceBlendFactor { get; set; } Gets or sets how the color is blended.
StencilBackFace { get; } Gets the stencil state for back face.
StencilFrontFace { get; } Gets the stencil state for front face.
StencilMask { get; set; } Gets or sets the mask that is ANDed with the both reference and stored stencil value when test is done.
StencilReference { get; set; } Gets or sets the reference value for the stencil test.
StencilTest { get; set; } Enable or disable the stencil test.


Name Description
CompareTo(RenderState) Compare the render state with another instance
Dispose() Dispose the RenderState and release all internal resources.
override Equals(object) Returns a value indicating whether this instance is equal to a specified object.
override GetHashCode() Returns the hash code for this instance.

See Also