mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2025-03-13 02:39:39 -05:00

* Ensure descriptor sets are only re-used when all command buffers using it have completed * Fix some SPIR-V capabilities * Set update after bind flag if we exceed limits * Simpler fix for Intel * Format whitespace * Make struct readonly * Add barriers for extra set arrays too
22 lines
737 B
C#
22 lines
737 B
C#
using Ryujinx.Graphics.GAL.Multithreading.Model;
|
|
using Ryujinx.Graphics.GAL.Multithreading.Resources;
|
|
|
|
namespace Ryujinx.Graphics.GAL.Multithreading.Commands.ImageArray
|
|
{
|
|
struct ImageArrayDisposeCommand : IGALCommand, IGALCommand<ImageArrayDisposeCommand>
|
|
{
|
|
public readonly CommandType CommandType => CommandType.ImageArrayDispose;
|
|
private TableRef<ThreadedImageArray> _imageArray;
|
|
|
|
public void Set(TableRef<ThreadedImageArray> imageArray)
|
|
{
|
|
_imageArray = imageArray;
|
|
}
|
|
|
|
public static void Run(ref ImageArrayDisposeCommand command, ThreadedRenderer threaded, IRenderer renderer)
|
|
{
|
|
command._imageArray.Get(threaded).Base.Dispose();
|
|
}
|
|
}
|
|
}
|