AcTools.Render.Base.Utils.SlimDxExtension.CreateBlendState C# (CSharp) Method

CreateBlendState() public static method

public static CreateBlendState ( this device, RenderTargetBlendDescription description ) : BlendState
device this
description RenderTargetBlendDescription
return BlendState
        public static BlendState CreateBlendState(this Device device, RenderTargetBlendDescription description) {
            var desc = new BlendStateDescription {
                AlphaToCoverageEnable = false,
                IndependentBlendEnable = false
            };
            desc.RenderTargets[0] = description;
            return BlendState.FromDescription(device, desc);
        }
    }