2015-05-24 04:32:32 +00:00
|
|
|
// Copyright 2010 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
#pragma once
|
2010-11-14 23:56:26 +00:00
|
|
|
|
2015-12-21 19:11:01 +00:00
|
|
|
#include <memory>
|
2010-11-14 23:56:26 +00:00
|
|
|
|
2016-01-17 21:54:31 +00:00
|
|
|
#include "Common/CommonTypes.h"
|
2010-11-14 23:56:26 +00:00
|
|
|
|
2018-07-17 03:24:36 +00:00
|
|
|
enum class AbstractTextureFormat : u32;
|
|
|
|
|
2014-09-20 18:54:59 +00:00
|
|
|
inline bool AddressRangesOverlap(u32 aLower, u32 aUpper, u32 bLower, u32 bUpper)
|
2010-11-14 23:56:26 +00:00
|
|
|
{
|
2016-06-24 08:43:46 +00:00
|
|
|
return !((aLower >= bUpper) || (bLower >= aUpper));
|
2010-11-14 23:56:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class FramebufferManagerBase
|
|
|
|
{
|
|
|
|
public:
|
2016-06-24 08:43:46 +00:00
|
|
|
virtual ~FramebufferManagerBase();
|
|
|
|
|
|
|
|
static unsigned int GetEFBLayers() { return m_EFBLayers; }
|
2018-07-17 03:24:36 +00:00
|
|
|
static AbstractTextureFormat GetEFBDepthFormat();
|
2018-04-12 12:18:04 +00:00
|
|
|
|
2010-11-14 23:56:26 +00:00
|
|
|
protected:
|
2016-06-24 08:43:46 +00:00
|
|
|
static unsigned int m_EFBLayers;
|
2010-11-14 23:56:26 +00:00
|
|
|
};
|
|
|
|
|
2015-12-22 23:47:20 +00:00
|
|
|
extern std::unique_ptr<FramebufferManagerBase> g_framebuffer_manager;
|