3 using SiliconStudio.Core.Mathematics;
 
    4 using SiliconStudio.Core.ReferenceCounting;
 
    5 using SiliconStudio.Core.Serialization.Contents;
 
    7 namespace SiliconStudio.
Paradox.Graphics
 
   12     [ContentSerializer(typeof(BlendStateSerializer))]
 
   23             Description = description;
 
   34             lock (graphicsDevice.CachedBlendStates)
 
   36                 if (graphicsDevice.CachedBlendStates.TryGetValue(blendStateDescription, out blendState))
 
   39                     blendState.AddReferenceInternal();
 
   43                     blendState = 
new BlendState(graphicsDevice, blendStateDescription);
 
   44                     graphicsDevice.CachedBlendStates.Add(blendStateDescription, blendState);
 
   54                 GraphicsDevice.CachedBlendStates.Remove(Description);
 
BlendState(BlendStateDescription description)
 
Color4 BlendFactor
Gets or sets the four-component (RGBA) blend factor for alpha blending. 
 
Represents a color in the form of rgba. 
 
Performs primitive-based rendering, creates resources, handles system-level variables, adjusts gamma ramp levels, and creates shaders. See The+GraphicsDevice+class to learn more about the class. 
 
int MultiSampleMask
Gets or sets a bitmask which defines which samples can be written during multisampling. The default is 0xffffffff. 
 
static BlendState New(GraphicsDevice graphicsDevice, BlendStateDescription blendStateDescription)
Initializes a new instance of the BlendState class. 
 
override void Destroy()
Disposes of object resources. 
 
readonly BlendStateDescription Description
Gets the blend state description.