2014-02-03 06:02:17 -07:00
|
|
|
// Copyright 2015 Dolphin Emulator Project
|
2021-07-04 19:22:19 -06:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2014-02-03 06:02:17 -07:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "VideoCommon/RenderBase.h"
|
|
|
|
|
2021-06-09 05:42:21 -06:00
|
|
|
class BoundingBox;
|
|
|
|
|
2014-02-03 06:02:17 -07:00
|
|
|
namespace Null
|
|
|
|
{
|
2019-07-27 15:19:52 -06:00
|
|
|
class Renderer final : public ::Renderer
|
2014-02-03 06:02:17 -07:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
Renderer();
|
2017-03-03 23:40:08 -07:00
|
|
|
~Renderer() override;
|
2014-02-03 06:02:17 -07:00
|
|
|
|
2018-10-03 07:03:13 -06:00
|
|
|
bool IsHeadless() const override;
|
|
|
|
|
2021-08-27 23:30:05 -06:00
|
|
|
std::unique_ptr<AbstractTexture> CreateTexture(const TextureConfig& config,
|
|
|
|
std::string_view name) override;
|
2017-10-21 08:49:40 -06:00
|
|
|
std::unique_ptr<AbstractStagingTexture>
|
|
|
|
CreateStagingTexture(StagingTextureType type, const TextureConfig& config) override;
|
2018-01-21 03:22:45 -07:00
|
|
|
std::unique_ptr<AbstractFramebuffer>
|
2019-02-14 18:59:50 -07:00
|
|
|
CreateFramebuffer(AbstractTexture* color_attachment, AbstractTexture* depth_attachment) override;
|
2017-09-30 00:25:36 -06:00
|
|
|
|
2021-08-27 23:30:05 -06:00
|
|
|
std::unique_ptr<AbstractShader> CreateShaderFromSource(ShaderStage stage, std::string_view source,
|
|
|
|
std::string_view name) override;
|
2017-09-08 03:42:56 -06:00
|
|
|
std::unique_ptr<AbstractShader> CreateShaderFromBinary(ShaderStage stage, const void* data,
|
2021-08-27 23:30:05 -06:00
|
|
|
size_t length,
|
|
|
|
std::string_view name) override;
|
2019-02-14 18:59:50 -07:00
|
|
|
std::unique_ptr<NativeVertexFormat>
|
|
|
|
CreateNativeVertexFormat(const PortableVertexDeclaration& vtx_decl) override;
|
2019-04-15 05:55:26 -06:00
|
|
|
std::unique_ptr<AbstractPipeline> CreatePipeline(const AbstractPipelineConfig& config,
|
|
|
|
const void* cache_data = nullptr,
|
|
|
|
size_t cache_data_length = 0) override;
|
2017-09-08 03:42:56 -06:00
|
|
|
|
2014-02-03 06:02:17 -07:00
|
|
|
u32 AccessEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data) override { return 0; }
|
|
|
|
void PokeEFB(EFBAccessType type, const EfbPokeData* points, size_t num_points) override {}
|
|
|
|
|
2019-04-15 08:47:46 -06:00
|
|
|
void ClearScreen(const MathUtil::Rectangle<int>& rc, bool colorEnable, bool alphaEnable,
|
|
|
|
bool zEnable, u32 color, u32 z) override
|
2014-02-03 06:02:17 -07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2019-02-14 18:59:50 -07:00
|
|
|
void ReinterpretPixelData(EFBReinterpretType convtype) override {}
|
2021-06-09 05:42:21 -06:00
|
|
|
|
|
|
|
protected:
|
|
|
|
std::unique_ptr<BoundingBox> CreateBoundingBox() const override;
|
2014-02-03 06:02:17 -07:00
|
|
|
};
|
2019-02-14 18:59:50 -07:00
|
|
|
} // namespace Null
|