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