Search Results for

    Show / Hide Table of Contents

    Struct RasterizerStateDescription

    Describes a rasterizer state.

    Namespace: Evergine.Common.Graphics
    Assembly: Evergine.Common.dll
    Syntax
    public struct RasterizerStateDescription

    Fields

    AntialiasedLineEnable

    Specifies whether to enable line antialiasing; this applies only if doing line drawing and MultisampleEnable is false.

    Declaration
    public bool AntialiasedLineEnable
    Field Value
    Type Description
    bool

    CullMode

    Indicates that triangles facing the specified direction are not drawn.

    Declaration
    public CullMode CullMode
    Field Value
    Type Description
    CullMode

    DepthBias

    Depth value added to a given pixel. For information about depth bias.

    Declaration
    public int DepthBias
    Field Value
    Type Description
    int

    DepthBiasClamp

    The maximum depth bias of a pixel.

    Declaration
    public float DepthBiasClamp
    Field Value
    Type Description
    float

    DepthClipEnable

    Enables clipping based on distance.

    Declaration
    public bool DepthClipEnable
    Field Value
    Type Description
    bool

    FillMode

    Determines the fill mode used when rendering.

    Declaration
    public FillMode FillMode
    Field Value
    Type Description
    FillMode

    FrontCounterClockwise

    Determines if a triangle is front- or back-facing. If this parameter is TRUE, a triangle is considered front-facing if its vertices are counterclockwise on the render target and considered back-facing if they are clockwise. If this parameter is FALSE, the opposite is true.

    Declaration
    public bool FrontCounterClockwise
    Field Value
    Type Description
    bool

    ScissorEnable

    Enables scissor-rectangle culling. All pixels outside an active scissor rectangle are culled.

    Declaration
    public bool ScissorEnable
    Field Value
    Type Description
    bool

    SlopeScaledDepthBias

    Scalar of a given pixel's slope.

    Declaration
    public float SlopeScaledDepthBias
    Field Value
    Type Description
    float

    Properties

    Default

    Gets the default values for RasterizerStateDescription.

    Declaration
    public static RasterizerStateDescription Default { get; }
    Property Value
    Type Description
    RasterizerStateDescription

    Methods

    Equals(RasterizerStateDescription)

    Returns a hash code for this instance.

    Declaration
    public bool Equals(RasterizerStateDescription other)
    Parameters
    Type Name Description
    RasterizerStateDescription other

    The object to compare.

    Returns
    Type Description
    bool

    A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

    Equals(object)

    Determines whether the specified object is equal to this instance.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with this instance.

    Returns
    Type Description
    bool

    true if the specified object is equal to this instance; otherwise, false.

    Overrides
    ValueType.Equals(object)

    GetHashCode()

    Returns a hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for this instance, suitable for use in hashing algorithms and data structures like hash tables.

    Overrides
    ValueType.GetHashCode()

    SetDefault()

    Default rasterizer state description values.

    Declaration
    public void SetDefault()

    Operators

    operator ==(RasterizerStateDescription, RasterizerStateDescription)

    Implements the operator ==.

    Declaration
    public static bool operator ==(RasterizerStateDescription value1, RasterizerStateDescription value2)
    Parameters
    Type Name Description
    RasterizerStateDescription value1

    The first value.

    RasterizerStateDescription value2

    The second value.

    Returns
    Type Description
    bool

    The result of the operator.

    operator !=(RasterizerStateDescription, RasterizerStateDescription)

    Implements the operator ==.

    Declaration
    public static bool operator !=(RasterizerStateDescription value1, RasterizerStateDescription value2)
    Parameters
    Type Name Description
    RasterizerStateDescription value1

    The first value.

    RasterizerStateDescription value2

    The second value.

    Returns
    Type Description
    bool

    The result of the operation.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX