diff options
author | gdkchan <gab.dark.100@gmail.com> | 2021-09-28 18:52:27 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-28 23:52:27 +0200 |
commit | 83bdafccdab01322af8503e9ad21f52981e646c1 (patch) | |
tree | 4941d53d24474643a8153d304af2e056505ba1eb /Ryujinx.Graphics.Gpu/Image/TextureManager.cs | |
parent | 405840a24b75ecd7cab52c1960464071e2bc9b81 (diff) |
Share scales array for graphics and compute (#2653)
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image/TextureManager.cs')
-rw-r--r-- | Ryujinx.Graphics.Gpu/Image/TextureManager.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/TextureManager.cs b/Ryujinx.Graphics.Gpu/Image/TextureManager.cs index 1d7b8df2..a6373872 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureManager.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureManager.cs @@ -35,8 +35,11 @@ namespace Ryujinx.Graphics.Gpu.Image TexturePoolCache texturePoolCache = new TexturePoolCache(context); - _cpBindingsManager = new TextureBindingsManager(context, channel, texturePoolCache, isCompute: true); - _gpBindingsManager = new TextureBindingsManager(context, channel, texturePoolCache, isCompute: false); + float[] scales = new float[64]; + new Span<float>(scales).Fill(1f); + + _cpBindingsManager = new TextureBindingsManager(context, channel, texturePoolCache, scales, isCompute: true); + _gpBindingsManager = new TextureBindingsManager(context, channel, texturePoolCache, scales, isCompute: false); _rtColors = new Texture[Constants.TotalRenderTargets]; _rtHostColors = new ITexture[Constants.TotalRenderTargets]; |