Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    Blend Enum

    Namespace: Stride.Graphics
    Assembly: Stride.Graphics.dll

    Blend option. A blend option identifies the data source and an optional pre-blend operation.

    [DataContract]
    public enum Blend
    Remarks

    Blend options are specified in a .

    Fields

    Name Description
    BlendFactor

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

    DestinationAlpha

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

    DestinationColor

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

    InverseBlendFactor

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

    InverseDestinationAlpha

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

    InverseDestinationColor

    The data source is color data from a rendertarget. 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 options 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 options 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-blend operation.

    SecondarySourceAlpha

    The data sources are alpha data output by a pixel shader. There is no pre-blend operation. This options 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 options 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 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. No pre-blend operation.

    Zero

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

    Extension Methods

    ComponentBaseExtensions.DisposeBy<Blend>(ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<Blend>(ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation