OpenGL: Fix blit from non-multisample to multisample texture (#3596)
* OpenGL: Fix blit from non-multisample to multisample texture * New approach for multisample copy using compute shaders
This commit is contained in:
parent
41790aa743
commit
da75a9a6ea
6 changed files with 329 additions and 156 deletions
|
@ -24,6 +24,7 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
private TextureCopy _textureCopy;
|
||||
private TextureCopy _backgroundTextureCopy;
|
||||
internal TextureCopy TextureCopy => BackgroundContextWorker.InBackground ? _backgroundTextureCopy : _textureCopy;
|
||||
internal TextureCopyMS TextureCopyMS { get; }
|
||||
|
||||
private Sync _sync;
|
||||
|
||||
|
@ -48,6 +49,7 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
_window = new Window(this);
|
||||
_textureCopy = new TextureCopy(this);
|
||||
_backgroundTextureCopy = new TextureCopy(this);
|
||||
TextureCopyMS = new TextureCopyMS(this);
|
||||
_sync = new Sync();
|
||||
PersistentBuffers = new PersistentBuffers();
|
||||
ResourcePool = new ResourcePool();
|
||||
|
@ -211,6 +213,7 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
{
|
||||
_textureCopy.Dispose();
|
||||
_backgroundTextureCopy.Dispose();
|
||||
TextureCopyMS.Dispose();
|
||||
PersistentBuffers.Dispose();
|
||||
ResourcePool.Dispose();
|
||||
_pipeline.Dispose();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue