rsx: Invalidate surface cache slots that are trampled by buffer writes.

This commit is contained in:
kd-11
2025-10-26 01:15:30 +03:00
committed by kd-11
parent 0403231a0d
commit dba48d6387
9 changed files with 108 additions and 53 deletions
+27
View File
@@ -0,0 +1,27 @@
#pragma once
// Generic deferred routine wrapper
// Use-case is similar to "defer" statement in other languages, just invokes a callback when the object goes out of scope
#include <functional>
namespace utils
{
template <typename F>
requires std::is_invocable_v<F>
class deferred_op
{
public:
deferred_op(F&& callback)
: m_callback(callback)
{}
~deferred_op()
{
m_callback();
}
private:
F m_callback;
};
}