Search Results for

    Show / Hide Table of Contents

    Enum Blend

    Blend factors, which modulate values for the pixel shader and the render target.

    Namespace: Evergine.Common.Graphics
    Assembly: Evergine.Common.dll
    Syntax
    public enum Blend : byte

    Fields

    Name Description
    BlendFactor

    The data source is the blend factor set with BlendStates. No pre-blend operation is performed.

    DestinationAlpha

    The data source is alpha data from a render target. No pre-blend operation.

    DestinationColor

    The data source is color data from a render target. No pre-blend operation.

    InverseBlendFactor

    The data source is the blend factor set with SetBlendState. The pre-blend operation inverts the blend factor, generating 1 - blendFactor.

    InverseDestinationAlpha

    The data source is alpha data from a render target. The pre-blend operation inverts the data, generating 1 - A.

    InverseDestinationColor

    The data source is color data from a render target. The pre-blend operation inverts the data, generating 1 - RGB.

    InverseSecondarySourceAlpha

    The data sources are alpha data output by a pixel shader. The pre-blend operation inverts the data, generating 1 - A. This option supports dual-source color blending.

    InverseSecondarySourceColor

    The data sources are both color data output by a pixel shader. The pre-blend operation inverts the data, generating 1 - RGB. This option supports dual-source color blending.

    InverseSourceAlpha

    The data source is alpha data (A) from a pixel shader. The pre-blend operation inverts the data, generating 1 - A.

    InverseSourceColor

    The data source is color data (RGB) from a pixel shader. The pre-blend operation inverts the data, generating 1 - RGB.

    One

    The data source is the color white (1, 1, 1, 1). No pre-blending operation.

    SecondarySourceAlpha

    The data sources are alpha data output by a pixel shader. There is no pre-blend operation. This option supports dual-source color blending.

    SecondarySourceColor

    The data sources are both color data output by a pixel shader. There is no pre-blend operation. This option supports dual-source color blending.

    SourceAlpha

    The data source is alpha data (A) from a pixel shader. No pre-blend operation.

    SourceAlphaSaturate

    The data source is the alpha data from a pixel shader. The pre-blend operation clamps the data to 1 or less.

    SourceColor

    The data source is color data (RGB) from a pixel shader with no pre-blend operation.

    Zero

    The data source is the color black (0, 0, 0, 0). No pre-blend operation is performed.

    Extension Methods

    MTLExtensionsMethods.ToMetal(Blend)
    VKExtensionsMethods.ToVulkan(Blend)
    WGPUExtensionsMethods.ToWGPU(Blend)
    EnumExtensions.HasFlag(Enum, Enum)
    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX