mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-12-16 12:09:51 +00:00
if a buffer is inherited, ignore it and remove it from the list. fixes a crash when a buffer is inherited during a sync and the containing ranges have been modified to not fit in the old buffer.
23 lines
942 B
C#
23 lines
942 B
C#
namespace Ryujinx.Graphics.Gpu.Synchronization
|
|
{
|
|
/// <summary>
|
|
/// This interface indicates that a class can be registered for a sync action.
|
|
/// </summary>
|
|
interface ISyncActionHandler
|
|
{
|
|
/// <summary>
|
|
/// Action to be performed when some synchronizing action is reached after modification.
|
|
/// Generally used to register read/write tracking to flush resources from GPU when their memory is used.
|
|
/// </summary>
|
|
/// <param name="syncpoint">True if the action is a guest syncpoint</param>
|
|
/// <returns>True if the action is to be removed, false otherwise</returns>
|
|
bool SyncAction(bool syncpoint);
|
|
|
|
/// <summary>
|
|
/// Action to be performed immediately before sync is created.
|
|
/// </summary>
|
|
/// <param name="syncpoint">True if the action is a guest syncpoint</param>
|
|
bool SyncPreAction(bool syncpoint) { return true; }
|
|
}
|
|
}
|