Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
Blend.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using SiliconStudio.Core;
4 
5 namespace SiliconStudio.Paradox.Graphics
6 {
7  /// <summary>
8  /// Blend option. A blend option identifies the data source and an optional pre-blend operation.
9  /// </summary>
10  /// <remarks>
11  /// Blend options are specified in a <see cref="BlendState"/>.
12  /// </remarks>
13  [DataContract]
14  public enum Blend
15  {
16  /// <summary>
17  /// The data source is the color black (0, 0, 0, 0). No pre-blend operation.
18  /// </summary>
19  Zero = 1,
20 
21  /// <summary>
22  /// The data source is the color white (1, 1, 1, 1). No pre-blend operation.
23  /// </summary>
24  One = 2,
25 
26  /// <summary>
27  /// The data source is color data (RGB) from a pixel shader. No pre-blend operation.
28  /// </summary>
29  SourceColor = 3,
30 
31  /// <summary>
32  /// The data source is color data (RGB) from a pixel shader. The pre-blend operation inverts the data, generating 1 - RGB.
33  /// </summary>
35 
36  /// <summary>
37  /// The data source is alpha data (A) from a pixel shader. No pre-blend operation.
38  /// </summary>
39  SourceAlpha = 5,
40 
41  /// <summary>
42  /// The data source is alpha data (A) from a pixel shader. The pre-blend operation inverts the data, generating 1 - A.
43  /// </summary>
45 
46  /// <summary>
47  /// The data source is alpha data from a rendertarget. No pre-blend operation.
48  /// </summary>
49  DestinationAlpha = 7,
50 
51  /// <summary>
52  /// The data source is alpha data from a rendertarget. The pre-blend operation inverts the data, generating 1 - A.
53  /// </summary>
55 
56  /// <summary>
57  /// The data source is color data from a rendertarget. No pre-blend operation.
58  /// </summary>
59  DestinationColor = 9,
60 
61  /// <summary>
62  /// The data source is color data from a rendertarget. The pre-blend operation inverts the data, generating 1 - RGB.
63  /// </summary>
65 
66  /// <summary>
67  /// The data source is alpha data from a pixel shader. The pre-blend operation clamps the data to 1 or less.
68  /// </summary>
70 
71  /// <summary>
72  /// The data source is the blend factor set with <see cref="GraphicsDevice.BlendStates"/>. No pre-blend operation.
73  /// </summary>
74  BlendFactor = 14,
75 
76  /// <summary>
77  /// The data source is the blend factor set with <see cref="GraphicsDevice.SetBlendState"/>. The pre-blend operation inverts the blend factor, generating 1 - blend_factor.
78  /// </summary>
79  InverseBlendFactor = 15,
80 
81  /// <summary>
82  /// 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.
83  /// </summary>
85 
86  /// <summary>
87  /// 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.
88  /// </summary>
90 
91  /// <summary>
92  /// The data sources are alpha data output by a pixel shader. There is no pre-blend operation. This options supports dual-source color blending.
93  /// </summary>
95 
96  /// <summary>
97  /// 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.
98  /// </summary>
100  }
101 }
The data source is color data (RGB) from a pixel shader. The pre-blend operation inverts the data...
The data source is alpha data from a rendertarget. The pre-blend operation inverts the data...
The data source is alpha data (A) from a pixel shader. No pre-blend operation.
The data sources are alpha data output by a pixel shader. The pre-blend operation inverts the data...
The data source is color data from a rendertarget. The pre-blend operation inverts the data...
The data source is the blend factor set with GraphicsDevice.SetBlendState. The pre-blend operation in...
The data sources are both color data output by a pixel shader. There is no pre-blend operation...
The data sources are both color data output by a pixel shader. The pre-blend operation inverts the da...
The data source is color data from a rendertarget. No pre-blend operation.
The data sources are alpha data output by a pixel shader. There is no pre-blend operation. This options supports dual-source color blending.
The data source is the blend factor set with GraphicsDevice.BlendStates. No pre-blend operation...
The data source is color data (RGB) from a pixel shader. No pre-blend operation.
The data source is alpha data from a rendertarget. No pre-blend operation.
The data source is the color white (1, 1, 1, 1). No pre-blend operation.
The data source is the color black (0, 0, 0, 0). No pre-blend operation.
The data source is alpha data from a pixel shader. The pre-blend operation clamps the data to 1 or le...
Blend
Blend option. A blend option identifies the data source and an optional pre-blend operation...
Definition: Blend.cs:14
The data source is alpha data (A) from a pixel shader. The pre-blend operation inverts the data...