Describes rasterizer state.
示例#1
0
 /// <summary>
 /// Creates pipeline state factory
 /// </summary>
 public StateFactory CreateFactory(Type type, Primitive primitive, VertexInputElement[] vertexInputElements, BlendState blendState, RasterizerState rasterizerState, DepthStencilState depthStencilState)
 {
     return(CreateFactory(type, (ps, i) => {
         ps.Primitive = primitive;
         ps.VertexInputElements = vertexInputElements;
         ps.BlendState = blendState;
         ps.RasterizerState = rasterizerState;
         ps.DepthStencilState = depthStencilState;
     }));
 }