Support copy of slices to 3D textures, remove old 3D render target layered render support, do not delete textures with existing views created from them
This commit is contained in:
parent
3bcc395253
commit
d786d8d2b9
9 changed files with 131 additions and 160 deletions
|
@ -137,11 +137,11 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
return _parent.GetHashCode();
|
||||
}
|
||||
|
||||
public void CopyTo(ITexture destination)
|
||||
public void CopyTo(ITexture destination, int firstLayer, int firstLevel)
|
||||
{
|
||||
TextureView destinationView = (TextureView)destination;
|
||||
|
||||
TextureCopyUnscaled.Copy(this, destinationView, 0, 0);
|
||||
TextureCopyUnscaled.Copy(this, destinationView, firstLayer, firstLevel);
|
||||
|
||||
int width = Math.Min(Width, destinationView.Width);
|
||||
int height = Math.Min(Height, destinationView.Height);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue