video_core/const_buffer_locker: Make use of std::tie in HasEqualKeys()
Tidies it up a little bit visually.
This commit is contained in:
parent
930e311526
commit
9403979c22
|
@ -3,6 +3,7 @@
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <tuple>
|
||||||
|
|
||||||
#include "common/common_types.h"
|
#include "common/common_types.h"
|
||||||
#include "video_core/engines/maxwell_3d.h"
|
#include "video_core/engines/maxwell_3d.h"
|
||||||
|
@ -101,8 +102,8 @@ bool ConstBufferLocker::IsConsistent() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ConstBufferLocker::HasEqualKeys(const ConstBufferLocker& rhs) const {
|
bool ConstBufferLocker::HasEqualKeys(const ConstBufferLocker& rhs) const {
|
||||||
return keys == rhs.keys && bound_samplers == rhs.bound_samplers &&
|
return std::tie(keys, bound_samplers, bindless_samplers) ==
|
||||||
bindless_samplers == rhs.bindless_samplers;
|
std::tie(rhs.keys, rhs.bound_samplers, rhs.bindless_samplers);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace VideoCommon::Shader
|
} // namespace VideoCommon::Shader
|
||||||
|
|
Reference in New Issue