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); }
public EffectPipelineState( RasterizerStateDescription rasterizerState, DepthStencilStateDescription depthStencilState, BlendStateDescription blendState, OutputDescription outputDescription) { RasterizerState = rasterizerState; DepthStencilState = depthStencilState; BlendState = blendState; OutputDescription = outputDescription; Handle = null; Handle = EffectPipelineStateFactory.GetHandle(this); }