2014-02-03 13:02:17 +00:00
|
|
|
// Copyright 2015 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2016-09-23 17:55:51 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-02-03 17:31:20 +00:00
|
|
|
#include <utility>
|
|
|
|
|
|
|
|
#include "Common/CommonTypes.h"
|
2014-02-03 13:02:17 +00:00
|
|
|
#include "VideoCommon/FramebufferManagerBase.h"
|
|
|
|
|
|
|
|
class XFBSource : public XFBSourceBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void DecodeToTexture(u32 xfb_addr, u32 fb_width, u32 fb_height) override {}
|
|
|
|
void CopyEFB(float gamma) override {}
|
|
|
|
};
|
|
|
|
|
|
|
|
class FramebufferManager : public FramebufferManagerBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
std::unique_ptr<XFBSourceBase> CreateXFBSource(unsigned int target_width,
|
|
|
|
unsigned int target_height,
|
|
|
|
unsigned int layers) override
|
|
|
|
{
|
|
|
|
return std::make_unique<XFBSource>();
|
|
|
|
}
|
|
|
|
|
2017-02-03 17:31:20 +00:00
|
|
|
std::pair<u32, u32> GetTargetSize() const override { return std::make_pair(0, 0); }
|
2014-02-03 13:02:17 +00:00
|
|
|
void CopyToRealXFB(u32 xfb_addr, u32 fb_stride, u32 fb_height, const EFBRectangle& source_rc,
|
|
|
|
float gamma = 1.0f) override
|
|
|
|
{
|
|
|
|
}
|
|
|
|
};
|