diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-10-08 17:16:57 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-10-10 20:23:55 -0700 |
| commit | e8d5fb89e4465e8ef64920f12e7cb60e82057658 (patch) | |
| tree | eda79c38cbe3b018b91038d642ccc48bcc9f93b8 /Source/Core/VideoBackends/Metal | |
| parent | b5f7a508742671410c44fc6f0e66d0ce789c3b57 (diff) | |
C++20: Synthesize `operator!=` From `operator==`
The inequality operator is automatically generated by the compiler if `operator==` is defined.
Diffstat (limited to 'Source/Core/VideoBackends/Metal')
| -rw-r--r-- | Source/Core/VideoBackends/Metal/MTLObjectCache.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Metal/MTLObjectCache.h b/Source/Core/VideoBackends/Metal/MTLObjectCache.h index f47a513116..9b58bea0c5 100644 --- a/Source/Core/VideoBackends/Metal/MTLObjectCache.h +++ b/Source/Core/VideoBackends/Metal/MTLObjectCache.h @@ -39,7 +39,6 @@ struct DepthStencilSelector enum CompareMode CompareMode() const { return static_cast<enum CompareMode>(value >> 1); } bool operator==(const DepthStencilSelector& other) const { return value == other.value; } - bool operator!=(const DepthStencilSelector& other) const { return !(*this == other); } static constexpr size_t N_VALUES = 1 << 4; }; @@ -65,7 +64,6 @@ struct SamplerSelector bool AnisotropicFiltering() const { return ((value >> 3) & 1); } bool operator==(const SamplerSelector& other) const { return value == other.value; } - bool operator!=(const SamplerSelector& other) const { return !(*this == other); } static constexpr size_t N_VALUES = (1 << 4) * 9; }; |
