diff options
| author | 2019-11-27 05:53:40 -0500 | |
|---|---|---|
| committer | 2019-11-27 05:53:43 -0500 | |
| commit | 9403979c2210c0c75434991fd02e102b971d92fb (patch) | |
| tree | f606e543bcc33a9164b0f5841df32bfc78c01a44 /src | |
| parent | video_core/const_buffer_locker: Remove unused includes (diff) | |
| download | yuzu-9403979c2210c0c75434991fd02e102b971d92fb.tar.gz yuzu-9403979c2210c0c75434991fd02e102b971d92fb.tar.xz yuzu-9403979c2210c0c75434991fd02e102b971d92fb.zip | |
video_core/const_buffer_locker: Make use of std::tie in HasEqualKeys()
Tidies it up a little bit visually.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/shader/const_buffer_locker.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/shader/const_buffer_locker.cpp b/src/video_core/shader/const_buffer_locker.cpp index 5dce43b1f..a4a0319eb 100644 --- a/src/video_core/shader/const_buffer_locker.cpp +++ b/src/video_core/shader/const_buffer_locker.cpp | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <algorithm> | 5 | #include <algorithm> |
| 6 | #include <tuple> | ||
| 6 | 7 | ||
| 7 | #include "common/common_types.h" | 8 | #include "common/common_types.h" |
| 8 | #include "video_core/engines/maxwell_3d.h" | 9 | #include "video_core/engines/maxwell_3d.h" |
| @@ -101,8 +102,8 @@ bool ConstBufferLocker::IsConsistent() const { | |||
| 101 | } | 102 | } |
| 102 | 103 | ||
| 103 | bool ConstBufferLocker::HasEqualKeys(const ConstBufferLocker& rhs) const { | 104 | bool ConstBufferLocker::HasEqualKeys(const ConstBufferLocker& rhs) const { |
| 104 | return keys == rhs.keys && bound_samplers == rhs.bound_samplers && | 105 | return std::tie(keys, bound_samplers, bindless_samplers) == |
| 105 | bindless_samplers == rhs.bindless_samplers; | 106 | std::tie(rhs.keys, rhs.bound_samplers, rhs.bindless_samplers); |
| 106 | } | 107 | } |
| 107 | 108 | ||
| 108 | } // namespace VideoCommon::Shader | 109 | } // namespace VideoCommon::Shader |