[D3D12] RT transfer: Same front/back stencil ops
This commit is contained in:
parent
82c1fb87aa
commit
920704c71a
|
@ -4388,14 +4388,8 @@ D3D12RenderTargetCache::GetOrCreateTransferPipelines(TransferShaderKey key) {
|
||||||
D3D12_STENCIL_OP_REPLACE;
|
D3D12_STENCIL_OP_REPLACE;
|
||||||
pipeline_desc.DepthStencilState.FrontFace.StencilFunc =
|
pipeline_desc.DepthStencilState.FrontFace.StencilFunc =
|
||||||
D3D12_COMPARISON_FUNC_ALWAYS;
|
D3D12_COMPARISON_FUNC_ALWAYS;
|
||||||
pipeline_desc.DepthStencilState.BackFace.StencilFailOp =
|
pipeline_desc.DepthStencilState.BackFace =
|
||||||
D3D12_STENCIL_OP_KEEP;
|
pipeline_desc.DepthStencilState.FrontFace;
|
||||||
pipeline_desc.DepthStencilState.BackFace.StencilDepthFailOp =
|
|
||||||
D3D12_STENCIL_OP_KEEP;
|
|
||||||
pipeline_desc.DepthStencilState.BackFace.StencilPassOp =
|
|
||||||
D3D12_STENCIL_OP_REPLACE;
|
|
||||||
pipeline_desc.DepthStencilState.BackFace.StencilFunc =
|
|
||||||
D3D12_COMPARISON_FUNC_ALWAYS;
|
|
||||||
pipeline_desc.DSVFormat = GetDepthDSVDXGIFormat(dest_depth_format);
|
pipeline_desc.DSVFormat = GetDepthDSVDXGIFormat(dest_depth_format);
|
||||||
// Even if creation fails, still store the null pointers not to try to
|
// Even if creation fails, still store the null pointers not to try to
|
||||||
// create again.
|
// create again.
|
||||||
|
@ -4448,14 +4442,8 @@ D3D12RenderTargetCache::GetOrCreateTransferPipelines(TransferShaderKey key) {
|
||||||
// stencil being different.
|
// stencil being different.
|
||||||
pipeline_desc.DepthStencilState.FrontFace.StencilFunc =
|
pipeline_desc.DepthStencilState.FrontFace.StencilFunc =
|
||||||
D3D12_COMPARISON_FUNC_ALWAYS;
|
D3D12_COMPARISON_FUNC_ALWAYS;
|
||||||
pipeline_desc.DepthStencilState.BackFace.StencilFailOp =
|
pipeline_desc.DepthStencilState.BackFace =
|
||||||
D3D12_STENCIL_OP_KEEP;
|
pipeline_desc.DepthStencilState.FrontFace;
|
||||||
pipeline_desc.DepthStencilState.BackFace.StencilDepthFailOp =
|
|
||||||
D3D12_STENCIL_OP_REPLACE;
|
|
||||||
pipeline_desc.DepthStencilState.BackFace.StencilPassOp =
|
|
||||||
D3D12_STENCIL_OP_REPLACE;
|
|
||||||
pipeline_desc.DepthStencilState.BackFace.StencilFunc =
|
|
||||||
D3D12_COMPARISON_FUNC_ALWAYS;
|
|
||||||
}
|
}
|
||||||
pipeline_desc.DSVFormat = GetDepthDSVDXGIFormat(dest_depth_format);
|
pipeline_desc.DSVFormat = GetDepthDSVDXGIFormat(dest_depth_format);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue