Skip to content
Permalink
Browse files

RenderBase: Add EFBHasAlphaChannel() helper

  • Loading branch information...
stenzek committed Mar 9, 2019
1 parent 9b6c925 commit 7dd9d74eece97c1cb5e5d3839d20811d1757b427
Showing with 6 additions and 0 deletions.
  1. +5 −0 Source/Core/VideoCommon/RenderBase.cpp
  2. +1 −0 Source/Core/VideoCommon/RenderBase.h
@@ -151,6 +151,11 @@ std::unique_ptr<AbstractShader> Renderer::CreateShaderFromSource(ShaderStage sta
return CreateShaderFromSource(stage, source.c_str(), source.size());
}

bool Renderer::EFBHasAlphaChannel() const
{
return m_prev_efb_format == PEControl::RGBA6_Z24;
}

void Renderer::ClearScreen(const EFBRectangle& rc, bool colorEnable, bool alphaEnable, bool zEnable,
u32 color, u32 z)
{
@@ -224,6 +224,7 @@ class Renderer

PEControl::PixelFormat GetPrevPixelFormat() const { return m_prev_efb_format; }
void StorePixelFormat(PEControl::PixelFormat new_format) { m_prev_efb_format = new_format; }
bool EFBHasAlphaChannel() const;
VideoCommon::PostProcessing* GetPostProcessor() const { return m_post_processor.get(); }
// Final surface changing
// This is called when the surface is resized (WX) or the window changes (Android).

0 comments on commit 7dd9d74

Please sign in to comment.
You can’t perform that action at this time.