Debian Codegraph @

Source/Core/VideoBackends/Null/NullGfx.h

raw symbols SCIP
1 // Copyright 2015 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5
6 #include "VideoCommon/AbstractGfx.h"
7 #include "VideoCommon/EFBInterface.h"
8
9 namespace Null
10 {
11 class NullGfx final : public AbstractGfx
12 {
13 public:
14 NullGfx();
15 ~NullGfx() override;
16
17 bool IsHeadless() const override;
18 bool SupportsUtilityDrawing() const override;
19
20 std::unique_ptr<AbstractTexture> CreateTexture(const TextureConfig& config,
21 std::string_view name) override;
22 std::unique_ptr<AbstractStagingTexture>
23 CreateStagingTexture(StagingTextureType type, const TextureConfig& config) override;
24 std::unique_ptr<AbstractFramebuffer>
25 CreateFramebuffer(AbstractTexture* color_attachment, AbstractTexture* depth_attachment,
26 std::vector<AbstractTexture*> additional_color_attachments) override;
27
28 std::unique_ptr<AbstractShader>
29 CreateShaderFromSource(ShaderStage stage, std::string_view source,
30 VideoCommon::ShaderIncluder* shader_includer,
31 std::string_view name) override;
32 std::unique_ptr<AbstractShader> CreateShaderFromBinary(ShaderStage stage, const void* data,
33 size_t length,
34 std::string_view name) override;
35 std::unique_ptr<NativeVertexFormat>
36 CreateNativeVertexFormat(const PortableVertexDeclaration& vtx_decl) override;
37 std::unique_ptr<AbstractPipeline> CreatePipeline(const AbstractPipelineConfig& config,
38 const void* cache_data = nullptr,
39 size_t cache_data_length = 0) override;
40 SurfaceInfo GetSurfaceInfo() const override { return {}; }
41 };
42
43 class NullEFBInterface final : public EFBInterfaceBase
44 {
45 void ReinterpretPixelData(EFBReinterpretType convtype) override;
46
47 void PokeColor(u16 x, u16 y, u32 color) override;
48 void PokeDepth(u16 x, u16 y, u32 depth) override;
49
50 u32 PeekColorInternal(u16 x, u16 y) override;
51 u32 PeekDepthInternal(u16 x, u16 y) override;
52 };
53
54 } // namespace Null