mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
vk: Use common pipeline layout in interpreter
- Avoids the layouts going out of sync every time something changes
This commit is contained in:
parent
b5b93e962b
commit
58a09e6838
3 changed files with 58 additions and 88 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue