fix BasicStencil

refresh2
cosmonaut 2024-03-02 23:10:52 -08:00
parent 0855bf6e26
commit beacd05925
1 changed files with 9 additions and 9 deletions

View File

@ -29,26 +29,26 @@ namespace MoonWorks.Test
pipelineCreateInfo.DepthStencilState = new DepthStencilState pipelineCreateInfo.DepthStencilState = new DepthStencilState
{ {
StencilTestEnable = true, StencilTestEnable = true,
StencilState = new StencilOpState FrontStencilState = new StencilOpState
{ {
Reference = 1,
WriteMask = 0xFF,
CompareOp = CompareOp.Never, CompareOp = CompareOp.Never,
FailOp = StencilOp.Replace, FailOp = StencilOp.Replace,
} },
Reference = 1,
WriteMask = 0xFF
}; };
maskerPipeline = new GraphicsPipeline(GraphicsDevice, pipelineCreateInfo); maskerPipeline = new GraphicsPipeline(GraphicsDevice, pipelineCreateInfo);
pipelineCreateInfo.DepthStencilState = new DepthStencilState pipelineCreateInfo.DepthStencilState = new DepthStencilState
{ {
StencilTestEnable = true, StencilTestEnable = true,
StencilState = new StencilOpState FrontStencilState = new StencilOpState
{ {
CompareOp = CompareOp.Equal,
},
Reference = 0, Reference = 0,
CompareMask = 0xFF, CompareMask = 0xFF,
WriteMask = 0, WriteMask = 0
CompareOp = CompareOp.Equal,
}
}; };
maskeePipeline = new GraphicsPipeline(GraphicsDevice, pipelineCreateInfo); maskeePipeline = new GraphicsPipeline(GraphicsDevice, pipelineCreateInfo);