4 using System.Runtime.InteropServices;
6 using SiliconStudio.Core;
7 using SiliconStudio.Core.Mathematics;
9 namespace SiliconStudio.
Paradox.Graphics
15 [StructLayout(LayoutKind.Sequential)]
26 RenderTargets[0].BlendEnable =
true;
27 RenderTargets[0].ColorSourceBlend = sourceBlend;
28 RenderTargets[0].ColorDestinationBlend = destinationBlend;
29 RenderTargets[0].AlphaSourceBlend = sourceBlend;
30 RenderTargets[0].AlphaDestinationBlend = destinationBlend;
40 AlphaToCoverageEnable =
false;
41 IndependentBlendEnable =
false;
43 for (
int i = 0; i < RenderTargets.Length; i++)
45 RenderTargets[i].BlendEnable =
false;
46 RenderTargets[i].ColorSourceBlend = Blend.One;
47 RenderTargets[i].ColorDestinationBlend = Blend.Zero;
48 RenderTargets[i].ColorBlendFunction = BlendFunction.Add;
50 RenderTargets[i].AlphaSourceBlend = Blend.One;
51 RenderTargets[i].AlphaDestinationBlend = Blend.Zero;
52 RenderTargets[i].AlphaBlendFunction = BlendFunction.Add;
BlendStateRenderTargetDescription[] RenderTargets
An array of render-target-blend descriptions (see BlendStateRenderTargetDescription); these correspon...
bool IndependentBlendEnable
Set to true to enable independent blending in simultaneous render targets. If set to false...
Use the default mode depending on the type of the field/property.
bool AlphaToCoverageEnable
Determines whether or not to use alpha-to-coverage as a multisampling technique when setting a pixel ...
ColorWriteChannels
Identify which components of each pixel of a render target are writable during blending.
void SetDefaults()
Setup this blend description with defaults value.
Blend
Blend option. A blend option identifies the data source and an optional pre-blend operation...
Describes the blend state for a render target.
BlendStateDescription(Blend sourceBlend, Blend destinationBlend)
Initializes a new instance of the BlendStateDescription class.