dolphin/Source/Core/VideoCommon/FramebufferManagerBase.h

31 lines
670 B
C
Raw Normal View History

2015-05-23 22:32:32 -06:00
// Copyright 2010 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include <memory>
#include "Common/CommonTypes.h"
enum class AbstractTextureFormat : u32;
inline bool AddressRangesOverlap(u32 aLower, u32 aUpper, u32 bLower, u32 bUpper)
{
return !((aLower >= bUpper) || (bLower >= aUpper));
}
class FramebufferManagerBase
{
public:
virtual ~FramebufferManagerBase();
static unsigned int GetEFBLayers() { return m_EFBLayers; }
static AbstractTextureFormat GetEFBDepthFormat();
2018-04-12 06:18:04 -06:00
protected:
static unsigned int m_EFBLayers;
};
extern std::unique_ptr<FramebufferManagerBase> g_framebuffer_manager;