On 30 November 2016 at 12:47, Józef Kucia jkucia@codeweavers.com wrote:
- ds_desc.FrontFace.StencilFailOp = D3D10_STENCIL_OP_ZERO;
- ds_desc.FrontFace.StencilDepthFailOp = D3D10_STENCIL_OP_ZERO;
- ds_desc.FrontFace.StencilPassOp = D3D10_STENCIL_OP_ZERO;
- ds_desc.FrontFace.StencilFunc = D3D10_COMPARISON_NEVER;
- ds_desc.BackFace.StencilFailOp = D3D10_STENCIL_OP_ZERO;
- ds_desc.BackFace.StencilDepthFailOp = D3D10_STENCIL_OP_ZERO;
- ds_desc.BackFace.StencilPassOp = D3D10_STENCIL_OP_ZERO;
- ds_desc.BackFace.StencilFunc = D3D10_COMPARISON_ALWAYS;
It's fine for a start, but note that this test doesn't do much for front/back stencil ops. Also, fwiw, in d3d9:visual there's stencil_cull_test() that's similar.