BlendStateDescription Struct 
              
              
              Namespace: Stride.Graphics
              Assembly: Stride.Graphics.dll
              
              
              
              
              
              
              
              
              
                [DataContract]
public struct BlendStateDescription : IEquatable<BlendStateDescription>
               
              
              
              
              
              
                  
              
                     
              
                
                  |
                  Improve this Doc
                
                
                  View Source
                
              
              
                Constructors
              
                
              
              
              
              
              
              BlendStateDescription(Blend, Blend)
              
              
              
              
              
                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
              
              
              
              
              
              RenderTarget1
              
              
              
              
              
                public BlendStateRenderTargetDescription RenderTarget1
               
              
              Field Value
              
              
              
              
              
              RenderTarget2
              
              
              
              
              
                public BlendStateRenderTargetDescription RenderTarget2
               
              
              Field Value
              
              
              
              
              
              RenderTarget3
              
              
              
              
              
                public BlendStateRenderTargetDescription RenderTarget3
               
              
              Field Value
              
              
              
              
              
              RenderTarget4
              
              
              
              
              
                public BlendStateRenderTargetDescription RenderTarget4
               
              
              Field Value
              
              
              
              
              
              RenderTarget5
              
              
              
              
              
                public BlendStateRenderTargetDescription RenderTarget5
               
              
              Field Value
              
              
              
              
              
              RenderTarget6
              
              
              
              
              
                public BlendStateRenderTargetDescription RenderTarget6
               
              
              Field Value
              
              
              
              
              
              RenderTarget7
              
              
              
              
              
                public BlendStateRenderTargetDescription RenderTarget7
               
              
              Field Value
              
                     
              
                
                  |
                  Improve this Doc
                
                
                  View Source
                
              
              
                Properties
              
                
              
              
              
              
              
              Default
              
              Gets default values for this instance.
 
              
              
              
                public static readonly BlendStateDescription Default { get; }
               
              
              Property Value
              
                     
              
                
                  |
                  Improve this Doc
                
                
                  View Source
                
              
              
                Methods
              
                
              
              
              
              
              
              Equals(BlendStateDescription)
              
              
              
              
              
                public bool Equals(BlendStateDescription other)
               
              
              Parameters
              
              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
              
              Returns
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Boolean | 
                     | 
                  
                
              
              
              
              
              
              
              Inequality(BlendStateDescription, BlendStateDescription)
              
              
              
              
              
                public static bool operator !=(BlendStateDescription left, BlendStateDescription right)
               
              
              Parameters
              
              Returns
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Boolean | 
                     | 
                  
                
              
              
              
 
              
               
              
              
              
                
                  System.ValueType.ToString()
                
               
              
              
              
              Extension Methods