private static void ConfigureCopyBlend(out BlendStateDescription description) { description = new BlendStateDescription { SourceBlend = BlendOption.One, DestinationBlend = BlendOption.Zero, BlendOperation = BlendOperation.Add, SourceAlphaBlend = BlendOption.One, DestinationAlphaBlend = BlendOption.Zero, AlphaBlendOperation = BlendOperation.Add }; description.IsBlendEnabled[0] = true; description.RenderTargetWriteMask[0] = ColorWriteMaskFlags.All; }
/// <summary> /// Constructs a new <see cref = "T:SharpDX.Direct3D10.BlendState" /> based on the specified description. /// </summary> /// <param name = "device">The device with which to associate the state object.</param> /// <param name = "description">The state description.</param> /// <returns>The newly created object.</returns> public BlendState(Device device, ref BlendStateDescription description) : base(IntPtr.Zero) { device.CreateBlendState(ref description, this); }