summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Null/FramebufferManager.h
blob: d68a4a7d1ffd9d058b0f107d4b752939ae6d9f5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright 2015 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.

#pragma once

#include <utility>

#include "Common/CommonTypes.h"
#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>();
  }

  std::pair<u32, u32> GetTargetSize() const override { return std::make_pair(0, 0); }
  void CopyToRealXFB(u32 xfb_addr, u32 fb_stride, u32 fb_height, const EFBRectangle& source_rc,
                     float gamma = 1.0f) override
  {
  }
};