Search Results for

    Show / Hide Table of Contents

    Struct BlendStateRenderTargetDescription

    Describes the blending state.

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

    Fields

    BlendEnable

    Enables (or disables) blending.

    Declaration
    [RenderProperty(Tag = 1)]
    public bool BlendEnable
    Field Value
    Type Description
    bool

    BlendOperationAlpha

    This blend operation defines how to combine the SrcBlendAlpha and DestBlendAlpha values.

    Declaration
    [RenderProperty(AttachToTag = 1, AttachToValue = true)]
    public BlendOperation BlendOperationAlpha
    Field Value
    Type Description
    BlendOperation

    BlendOperationColor

    This blend operation defines how to combine the SrcBlend and DestBlend operands.

    Declaration
    [RenderProperty(AttachToTag = 1, AttachToValue = true)]
    public BlendOperation BlendOperationColor
    Field Value
    Type Description
    BlendOperation

    ColorWriteChannels

    A writing mask.

    Declaration
    [RenderProperty(AttachToTag = 1, AttachToValue = true)]
    public ColorWriteChannels ColorWriteChannels
    Field Value
    Type Description
    ColorWriteChannels

    DestinationBlendAlpha

    This blend option specifies the operation to perform on the current alpha value in the render target. Blend option that end in _COLOR are not allowed. The BlendOpAlpha member defines how to combine the SrcBlendAlpha and DestBlendAlpha operations.

    Declaration
    [RenderProperty(AttachToTag = 1, AttachToValue = true)]
    public Blend DestinationBlendAlpha
    Field Value
    Type Description
    Blend

    DestinationBlendColor

    This blend option specifies the operation to perform on the current RGB value in the render target. The Blend option defines how to combine the SrcBlend and DestBlend values.

    Declaration
    [RenderProperty(AttachToTag = 1, AttachToValue = true)]
    public Blend DestinationBlendColor
    Field Value
    Type Description
    Blend

    SourceBlendAlpha

    This blend option specifies the operation to perform on the alpha value that the pixel shader outputs. Blend option that end in _COLOR are not allowed. The BlendOpAlpha member defines how to combine the SrcBlendAlpha and DestBlendAlpha operations.

    Declaration
    [RenderProperty(AttachToTag = 1, AttachToValue = true)]
    public Blend SourceBlendAlpha
    Field Value
    Type Description
    Blend

    SourceBlendColor

    This blend option specifies the operation to perform on the RGB values that the pixel shader outputs. The Blend option defines how to combine the SrcBlend and DestBlend operations.

    Declaration
    [RenderProperty(AttachToTag = 1, AttachToValue = true)]
    public Blend SourceBlendColor
    Field Value
    Type Description
    Blend

    Properties

    Default

    Gets the default values for BlendStateDescription.

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

    Methods

    Equals(BlendStateRenderTargetDescription)

    Returns a hash code for this instance.

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

    The other object used for comparison.

    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 a hash table.

    Overrides
    ValueType.GetHashCode()

    SetDefault()

    Default BlendStateDescription values.

    Declaration
    public void SetDefault()

    Operators

    operator ==(BlendStateRenderTargetDescription, BlendStateRenderTargetDescription)

    Implements the operator ==.

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

    The first value.

    BlendStateRenderTargetDescription value2

    The second value.

    Returns
    Type Description
    bool

    The result of the operation.

    operator !=(BlendStateRenderTargetDescription, BlendStateRenderTargetDescription)

    Implements the operator ==.

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

    The first value.

    BlendStateRenderTargetDescription value2

    The second value.

    Returns
    Type Description
    bool

    The result of the operator.

    Extension Methods

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