mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-13 06:10:18 +00:00
* Report base and extra sets from the backend * Pass texture set index everywhere * Key textures using set and binding (rather than just binding) * Start using extra sets for array textures * Shader cache version bump * Separate new commands, some PR feedback * Introduce new manual descriptor set reservation method that prevents it from being used by something else while owned by an array * Move bind extra sets logic to new method * Should only use separate array is MaximumExtraSets is not zero * Format whitespace
26 lines
1,001 B
C#
26 lines
1,001 B
C#
using Ryujinx.Graphics.GAL.Multithreading.Model;
|
|
using Ryujinx.Graphics.GAL.Multithreading.Resources;
|
|
using Ryujinx.Graphics.Shader;
|
|
|
|
namespace Ryujinx.Graphics.GAL.Multithreading.Commands
|
|
{
|
|
struct SetTextureArraySeparateCommand : IGALCommand, IGALCommand<SetTextureArraySeparateCommand>
|
|
{
|
|
public readonly CommandType CommandType => CommandType.SetTextureArraySeparate;
|
|
private ShaderStage _stage;
|
|
private int _setIndex;
|
|
private TableRef<ITextureArray> _array;
|
|
|
|
public void Set(ShaderStage stage, int setIndex, TableRef<ITextureArray> array)
|
|
{
|
|
_stage = stage;
|
|
_setIndex = setIndex;
|
|
_array = array;
|
|
}
|
|
|
|
public static void Run(ref SetTextureArraySeparateCommand command, ThreadedRenderer threaded, IRenderer renderer)
|
|
{
|
|
renderer.Pipeline.SetTextureArraySeparate(command._stage, command._setIndex, command._array.GetAs<ThreadedTextureArray>(threaded)?.Base);
|
|
}
|
|
}
|
|
}
|