vk: Use common pipeline layout in interpreter

- Avoids the layouts going out of sync every time something changes
This commit is contained in:
kd-11 2025-01-17 03:17:57 +03:00 committed by kd-11
parent b5b93e962b
commit 58a09e6838
3 changed files with 58 additions and 88 deletions

View file

@ -427,5 +427,17 @@ namespace rsx
}
return result;
}
template <typename F, typename U>
requires std::is_invocable_r_v<U, F, const U&, const Ty&>
U reduce(U initial_value, F&& reducer) const
{
U accumulate = initial_value;
for (auto it = begin(); it != end(); ++it)
{
accumulate = reducer(accumulate, *it);
}
return accumulate;
}
};
}