set stencil state

This commit is contained in:
Samuliak 2024-08-07 20:59:05 +02:00
parent d3249dc324
commit 1bcdade83e
8 changed files with 79 additions and 44 deletions

View file

@ -143,7 +143,10 @@ MTL::RenderPipelineState* MetalPipelineCache::GetPipelineState(const LatteFetchS
{
auto texture = static_cast<LatteTextureViewMtl*>(activeFBO->depthBuffer.texture);
desc->setDepthAttachmentPixelFormat(texture->GetRGBAView()->pixelFormat());
// TODO: stencil pixel format
if (activeFBO->depthBuffer.hasStencil)
{
desc->setStencilAttachmentPixelFormat(texture->GetRGBAView()->pixelFormat());
}
}
NS::Error* error = nullptr;