diff options
| author | 2019-11-27 16:26:22 -0300 | |
|---|---|---|
| committer | 2019-11-27 16:26:22 -0300 | |
| commit | 40ec1c22ce7507c8c9ec68ca9e9d4f6a74ec8fe0 (patch) | |
| tree | f606e543bcc33a9164b0f5841df32bfc78c01a44 /src | |
| parent | Merge pull request #3143 from ReinUsesLisp/indexing-bug (diff) | |
| parent | video_core/const_buffer_locker: Make use of std::tie in HasEqualKeys() (diff) | |
| download | yuzu-40ec1c22ce7507c8c9ec68ca9e9d4f6a74ec8fe0.tar.gz yuzu-40ec1c22ce7507c8c9ec68ca9e9d4f6a74ec8fe0.tar.xz yuzu-40ec1c22ce7507c8c9ec68ca9e9d4f6a74ec8fe0.zip | |
Merge pull request #3172 from lioncash/pragma
video_core/const_buffer_locker: Remove #pragma once from cpp file
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/shader/const_buffer_locker.cpp | 10 | ||||
| -rw-r--r-- | src/video_core/shader/const_buffer_locker.h | 1 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/video_core/shader/const_buffer_locker.cpp b/src/video_core/shader/const_buffer_locker.cpp index b65399f91..a4a0319eb 100644 --- a/src/video_core/shader/const_buffer_locker.cpp +++ b/src/video_core/shader/const_buffer_locker.cpp | |||
| @@ -2,11 +2,9 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <algorithm> | 5 | #include <algorithm> |
| 8 | #include <memory> | 6 | #include <tuple> |
| 9 | #include "common/assert.h" | 7 | |
| 10 | #include "common/common_types.h" | 8 | #include "common/common_types.h" |
| 11 | #include "video_core/engines/maxwell_3d.h" | 9 | #include "video_core/engines/maxwell_3d.h" |
| 12 | #include "video_core/engines/shader_type.h" | 10 | #include "video_core/engines/shader_type.h" |
| @@ -104,8 +102,8 @@ bool ConstBufferLocker::IsConsistent() const { | |||
| 104 | } | 102 | } |
| 105 | 103 | ||
| 106 | bool ConstBufferLocker::HasEqualKeys(const ConstBufferLocker& rhs) const { | 104 | bool ConstBufferLocker::HasEqualKeys(const ConstBufferLocker& rhs) const { |
| 107 | return keys == rhs.keys && bound_samplers == rhs.bound_samplers && | 105 | return std::tie(keys, bound_samplers, bindless_samplers) == |
| 108 | bindless_samplers == rhs.bindless_samplers; | 106 | std::tie(rhs.keys, rhs.bound_samplers, rhs.bindless_samplers); |
| 109 | } | 107 | } |
| 110 | 108 | ||
| 111 | } // namespace VideoCommon::Shader | 109 | } // namespace VideoCommon::Shader |
diff --git a/src/video_core/shader/const_buffer_locker.h b/src/video_core/shader/const_buffer_locker.h index 50a8ce42a..d32e2d657 100644 --- a/src/video_core/shader/const_buffer_locker.h +++ b/src/video_core/shader/const_buffer_locker.h | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <optional> | ||
| 7 | #include <unordered_map> | 8 | #include <unordered_map> |
| 8 | #include "common/common_types.h" | 9 | #include "common/common_types.h" |
| 9 | #include "common/hash.h" | 10 | #include "common/hash.h" |