Implement support for masked stencil clears on Vulkan (#5589)
* Implement support for masked stencil clears on Vulkan * PR feedback
This commit is contained in:
parent
c6a699414a
commit
153b8bfc7c
7 changed files with 131 additions and 38 deletions
|
@ -148,6 +148,16 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
return _attachments[index];
|
||||
}
|
||||
|
||||
public Auto<DisposableImageView> GetDepthStencilAttachment()
|
||||
{
|
||||
if (!HasDepthStencil)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return _attachments[AttachmentsCount - 1];
|
||||
}
|
||||
|
||||
public ComponentType GetAttachmentComponentType(int index)
|
||||
{
|
||||
if (_colors != null && (uint)index < _colors.Length)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue