summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderState.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2021-10-06 17:36:15 -0700
committerPokechu22 <Pokechu022@gmail.com>2021-11-17 20:04:34 -0800
commita273b655661bfc09e5c6a81a681aab3f130699cc (patch)
treeff689e03cfb6272e65f84d684cc7d7dd6e8a9c58 /Source/Core/VideoCommon/RenderState.cpp
parent6236a0d494378430767c20c7930af0c9cfe1ff5b (diff)
RenderState: Use operator== for operator!= and adjust constructors
Diffstat (limited to 'Source/Core/VideoCommon/RenderState.cpp')
-rw-r--r--Source/Core/VideoCommon/RenderState.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/Source/Core/VideoCommon/RenderState.cpp b/Source/Core/VideoCommon/RenderState.cpp
index 85b3dc68c1..d84a17257e 100644
--- a/Source/Core/VideoCommon/RenderState.cpp
+++ b/Source/Core/VideoCommon/RenderState.cpp
@@ -18,18 +18,6 @@ void RasterizationState::Generate(const BPMemory& bp, PrimitiveType primitive_ty
cullmode = CullMode::None;
}
-RasterizationState& RasterizationState::operator=(const RasterizationState& rhs)
-{
- hex = rhs.hex;
- return *this;
-}
-
-FramebufferState& FramebufferState::operator=(const FramebufferState& rhs)
-{
- hex = rhs.hex;
- return *this;
-}
-
void DepthState::Generate(const BPMemory& bp)
{
testenable = bp.zmode.testenable.Value();
@@ -37,12 +25,6 @@ void DepthState::Generate(const BPMemory& bp)
func = bp.zmode.func.Value();
}
-DepthState& DepthState::operator=(const DepthState& rhs)
-{
- hex = rhs.hex;
- return *this;
-}
-
// If the framebuffer format has no alpha channel, it is assumed to
// ONE on blending. As the backends may emulate this framebuffer
// configuration with an alpha channel, we just drop all references
@@ -217,12 +199,6 @@ void BlendingState::ApproximateLogicOpWithBlending()
dstfactor = approximations[u32(logicmode.Value())].dstfactor;
}
-BlendingState& BlendingState::operator=(const BlendingState& rhs)
-{
- hex = rhs.hex;
- return *this;
-}
-
void SamplerState::Generate(const BPMemory& bp, u32 index)
{
auto tex = bp.tex.GetUnit(index);
@@ -249,12 +225,6 @@ void SamplerState::Generate(const BPMemory& bp, u32 index)
anisotropic_filtering = 0;
}
-SamplerState& SamplerState::operator=(const SamplerState& rhs)
-{
- hex = rhs.hex;
- return *this;
-}
-
namespace RenderState
{
RasterizationState GetInvalidRasterizationState()