コード例 #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);
        }
コード例 #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);
        }