
* Add support for large sampler arrays on Vulkan * Shader cache version bump * Format whitespace * Move DescriptorSetManager to PipelineLayoutCacheEntry to allow different pool sizes per layout * Handle array textures with different types on the same buffer * Somewhat better caching system * Avoid useless buffer data modification checks * Move redundant bindings update checking to the backend * Fix an issue where texture arrays would get the same bindings across stages on Vulkan * Backport some fixes from part 2 * Fix typo * PR feedback * Format whitespace * Add some missing XML docs
27 lines
1.0 KiB
C#
27 lines
1.0 KiB
C#
using Ryujinx.Graphics.GAL.Multithreading.Model;
|
|
using Ryujinx.Graphics.GAL.Multithreading.Resources;
|
|
|
|
namespace Ryujinx.Graphics.GAL.Multithreading.Commands.ImageArray
|
|
{
|
|
struct ImageArraySetFormatsCommand : IGALCommand, IGALCommand<ImageArraySetFormatsCommand>
|
|
{
|
|
public readonly CommandType CommandType => CommandType.ImageArraySetFormats;
|
|
private TableRef<ThreadedImageArray> _imageArray;
|
|
private int _index;
|
|
private TableRef<Format[]> _imageFormats;
|
|
|
|
public void Set(TableRef<ThreadedImageArray> imageArray, int index, TableRef<Format[]> imageFormats)
|
|
{
|
|
_imageArray = imageArray;
|
|
_index = index;
|
|
_imageFormats = imageFormats;
|
|
}
|
|
|
|
public static void Run(ref ImageArraySetFormatsCommand command, ThreadedRenderer threaded, IRenderer renderer)
|
|
{
|
|
ThreadedImageArray imageArray = command._imageArray.Get(threaded);
|
|
imageArray.Base.SetFormats(command._index, command._imageFormats.Get(threaded));
|
|
}
|
|
}
|
|
}
|