mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-18 11:42:36 +00:00
RenderBase: Add EFBHasAlphaChannel() helper
This commit is contained in:
parent
9b6c9252e4
commit
7dd9d74eec
@ -151,6 +151,11 @@ std::unique_ptr<AbstractShader> Renderer::CreateShaderFromSource(ShaderStage sta
|
|||||||
return CreateShaderFromSource(stage, source.c_str(), source.size());
|
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,
|
void Renderer::ClearScreen(const EFBRectangle& rc, bool colorEnable, bool alphaEnable, bool zEnable,
|
||||||
u32 color, u32 z)
|
u32 color, u32 z)
|
||||||
{
|
{
|
||||||
|
@ -224,6 +224,7 @@ public:
|
|||||||
|
|
||||||
PEControl::PixelFormat GetPrevPixelFormat() const { return m_prev_efb_format; }
|
PEControl::PixelFormat GetPrevPixelFormat() const { return m_prev_efb_format; }
|
||||||
void StorePixelFormat(PEControl::PixelFormat new_format) { m_prev_efb_format = new_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(); }
|
VideoCommon::PostProcessing* GetPostProcessor() const { return m_post_processor.get(); }
|
||||||
// Final surface changing
|
// Final surface changing
|
||||||
// This is called when the surface is resized (WX) or the window changes (Android).
|
// This is called when the surface is resized (WX) or the window changes (Android).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user