Esempio n. 1
0
        public EffectPipelineState(
            RasterizerStateDescription rasterizerState,
            DepthStencilStateDescription depthStencilState,
            BlendStateDescription blendState)
        {
            RasterizerState   = rasterizerState;
            DepthStencilState = depthStencilState;
            BlendState        = blendState;

            // TODO: This is a bit ugly.
            _handle = null;
            _handle = EffectPipelineStateFactory.GetHandle(ref this);
        }
Esempio n. 2
0
        public EffectPipelineState(
            RasterizerStateDescription rasterizerState,
            DepthStencilStateDescription depthStencilState,
            BlendStateDescription blendState,
            OutputDescription outputDescription)
        {
            RasterizerState   = rasterizerState;
            DepthStencilState = depthStencilState;
            BlendState        = blendState;

            OutputDescription = outputDescription;

            Handle = null;
            Handle = EffectPipelineStateFactory.GetHandle(this);
        }