diff options
| author | gdk <gab.dark.100@gmail.com> | 2019-11-22 14:17:06 -0300 |
|---|---|---|
| committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
| commit | 79de8fd4904ec19318baceb999a7d1a84f686794 (patch) | |
| tree | 43ddaec0ae37aeadc7c33f6eaac856f07cfe44b9 /Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs | |
| parent | 2437ccca0e82b8b2a99d8632acf28ca0cc14c523 (diff) | |
Share texture pool cache between graphics and compute
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs b/Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs index 2d0e828e..74d7a76a 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs @@ -33,12 +33,11 @@ namespace Ryujinx.Graphics.Gpu.Image private bool _rebind; - public TextureBindingsManager(GpuContext context, bool isCompute) + public TextureBindingsManager(GpuContext context, TexturePoolCache texturePoolCache, bool isCompute) { - _context = context; - _isCompute = isCompute; - - _texturePoolCache = new TexturePoolCache(context); + _context = context; + _texturePoolCache = texturePoolCache; + _isCompute = isCompute; int stages = isCompute ? 1 : Constants.TotalShaderStages; |
