Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    BlendStateDescription Struct

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

    Describes a blend state.

    [DataContract]
    public struct BlendStateDescription : IEquatable<BlendStateDescription>
    Name Description
    Constructors
    BlendStateDescription(Blend, Blend)

    Initializes a new instance of the BlendStateDescription class.

    Fields
    AlphaToCoverageEnable

    Determines whether or not to use alpha-to-coverage as a multisampling technique when setting a pixel to a rendertarget.

    IndependentBlendEnable

    Set to true to enable independent blending in simultaneous render targets. If set to false, only the RenderTarget[0] members are used. RenderTarget[1..7] are ignored.

    RenderTarget0

    An array of render-target-blend descriptions (see BlendStateRenderTargetDescription); these correspond to the eight rendertargets that can be set to the output-merger stage at one time.

    RenderTarget1
    RenderTarget2
    RenderTarget3
    RenderTarget4
    RenderTarget5
    RenderTarget6
    RenderTarget7
    Properties
    Default

    Gets default values for this instance.

    Methods
    Equals(BlendStateDescription)
    Equals(Object)
    GetHashCode()
    SetDefaults()

    Setup this blend description with defaults value.

    Operators
    Equality(BlendStateDescription, BlendStateDescription)
    Inequality(BlendStateDescription, BlendStateDescription)
    | Improve this Doc View Source

    Constructors


    BlendStateDescription(Blend, Blend)

    Initializes a new instance of the BlendStateDescription class.

    public BlendStateDescription(Blend sourceBlend, Blend destinationBlend)
    Parameters
    Type Name Description
    Blend sourceBlend

    The source blend.

    Blend destinationBlend

    The destination blend.

    | Improve this Doc View Source

    Fields


    AlphaToCoverageEnable

    Determines whether or not to use alpha-to-coverage as a multisampling technique when setting a pixel to a rendertarget.

    public bool AlphaToCoverageEnable
    Field Value
    Type Description
    System.Boolean

    IndependentBlendEnable

    Set to true to enable independent blending in simultaneous render targets. If set to false, only the RenderTarget[0] members are used. RenderTarget[1..7] are ignored.

    public bool IndependentBlendEnable
    Field Value
    Type Description
    System.Boolean

    RenderTarget0

    An array of render-target-blend descriptions (see BlendStateRenderTargetDescription); these correspond to the eight rendertargets that can be set to the output-merger stage at one time.

    public BlendStateRenderTargetDescription RenderTarget0
    Field Value
    Type Description
    BlendStateRenderTargetDescription

    RenderTarget1

    public BlendStateRenderTargetDescription RenderTarget1
    Field Value
    Type Description
    BlendStateRenderTargetDescription

    RenderTarget2

    public BlendStateRenderTargetDescription RenderTarget2
    Field Value
    Type Description
    BlendStateRenderTargetDescription

    RenderTarget3

    public BlendStateRenderTargetDescription RenderTarget3
    Field Value
    Type Description
    BlendStateRenderTargetDescription

    RenderTarget4

    public BlendStateRenderTargetDescription RenderTarget4
    Field Value
    Type Description
    BlendStateRenderTargetDescription

    RenderTarget5

    public BlendStateRenderTargetDescription RenderTarget5
    Field Value
    Type Description
    BlendStateRenderTargetDescription

    RenderTarget6

    public BlendStateRenderTargetDescription RenderTarget6
    Field Value
    Type Description
    BlendStateRenderTargetDescription

    RenderTarget7

    public BlendStateRenderTargetDescription RenderTarget7
    Field Value
    Type Description
    BlendStateRenderTargetDescription
    | Improve this Doc View Source

    Properties


    Default

    Gets default values for this instance.

    public static readonly BlendStateDescription Default { get; }
    Property Value
    Type Description
    BlendStateDescription
    | Improve this Doc View Source

    Methods


    Equals(BlendStateDescription)

    public bool Equals(BlendStateDescription other)
    Parameters
    Type Name Description
    BlendStateDescription other
    Returns
    Type Description
    System.Boolean

    Equals(Object)

    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)

    GetHashCode()

    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()

    SetDefaults()

    Setup this blend description with defaults value.

    public void SetDefaults()
    | Improve this Doc View Source

    Operators


    Equality(BlendStateDescription, BlendStateDescription)

    public static bool operator ==(BlendStateDescription left, BlendStateDescription right)
    Parameters
    Type Name Description
    BlendStateDescription left
    BlendStateDescription right
    Returns
    Type Description
    System.Boolean

    Inequality(BlendStateDescription, BlendStateDescription)

    public static bool operator !=(BlendStateDescription left, BlendStateDescription right)
    Parameters
    Type Name Description
    BlendStateDescription left
    BlendStateDescription right
    Returns
    Type Description
    System.Boolean

    Inherited Members

    System.ValueType.ToString()

    Extension Methods

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

    Back to top

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