Support copy between multisample and non-multisample depth textures (#4676)
* Support copy between multisample and non-multisample depth textures * PR feedback
This commit is contained in:
parent
eabd0ec93f
commit
d9b63353b0
12 changed files with 947 additions and 66 deletions
|
@ -732,12 +732,7 @@ namespace Ryujinx.Graphics.Gpu.Image
|
|||
break;
|
||||
case Target.Texture2DMultisample:
|
||||
case Target.Texture2DMultisampleArray:
|
||||
// We don't support copy between multisample and non-multisample depth-stencil textures
|
||||
// because there's no way to emulate that since most GPUs don't support writing a
|
||||
// custom stencil value into the texture, among several other API limitations.
|
||||
|
||||
if ((rhs.Target == Target.Texture2D || rhs.Target == Target.Texture2DArray) &&
|
||||
!rhs.FormatInfo.Format.IsDepthOrStencil())
|
||||
if (rhs.Target == Target.Texture2D || rhs.Target == Target.Texture2DArray)
|
||||
{
|
||||
return TextureViewCompatibility.CopyOnly;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue