diff --git a/src/Ryujinx.Graphics.Gpu/Image/Pool.cs b/src/Ryujinx.Graphics.Gpu/Image/Pool.cs index e01bd5ee0b..e12fedc746 100644 --- a/src/Ryujinx.Graphics.Gpu/Image/Pool.cs +++ b/src/Ryujinx.Graphics.Gpu/Image/Pool.cs @@ -212,6 +212,11 @@ namespace Ryujinx.Graphics.Gpu.Image return false; } + /// + /// Checks if the pool was modified by comparing the current with a cached one. + /// + /// Cached modified sequence number + /// True if the pool was modified, false otherwise public bool WasModified(ref int sequenceNumber) { if (sequenceNumber != ModifiedSequenceNumber) diff --git a/src/Ryujinx.Graphics.Gpu/Memory/BufferTextureArrayBinding.cs b/src/Ryujinx.Graphics.Gpu/Memory/BufferTextureArrayBinding.cs index 1bca8a1ff6..fa79e4f92d 100644 --- a/src/Ryujinx.Graphics.Gpu/Memory/BufferTextureArrayBinding.cs +++ b/src/Ryujinx.Graphics.Gpu/Memory/BufferTextureArrayBinding.cs @@ -1,8 +1,6 @@ using Ryujinx.Graphics.GAL; using Ryujinx.Graphics.Gpu.Image; -using Ryujinx.Graphics.Shader; using Ryujinx.Memory.Range; -using System; namespace Ryujinx.Graphics.Gpu.Memory { @@ -11,6 +9,9 @@ namespace Ryujinx.Graphics.Gpu.Memory /// readonly struct BufferTextureArrayBinding { + /// + /// Backend texture or image array. + /// public T Array { get; } /// diff --git a/src/Ryujinx.ShaderTools/Program.cs b/src/Ryujinx.ShaderTools/Program.cs index 6ecb9886f2..4252f1b258 100644 --- a/src/Ryujinx.ShaderTools/Program.cs +++ b/src/Ryujinx.ShaderTools/Program.cs @@ -11,6 +11,8 @@ namespace Ryujinx.ShaderTools { private class GpuAccessor : IGpuAccessor { + private const int DefaultArrayLength = 32; + private readonly byte[] _data; private int _texturesCount; @@ -58,7 +60,7 @@ namespace Ryujinx.ShaderTools public int QueryTextureArrayLengthFromBuffer(int slot) { - throw new NotImplementedException(); + return DefaultArrayLength; } }