summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Null/TextureCache.h
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2014-02-03 14:02:17 +0100
committerdegasus <wickmarkus@web.de>2016-06-25 22:40:23 +0200
commit59e4882af3e18a4ef2c68f512ab312515ec1b466 (patch)
tree3c14ddc55c4d48e71acbfd6f96b743efb7ee3fd6 /Source/Core/VideoBackends/Null/TextureCache.h
parent10682dbf5843bcf55cda7db4bc4e5acaee556648 (diff)
nullvideo: initial release of null video backend
Diffstat (limited to 'Source/Core/VideoBackends/Null/TextureCache.h')
-rw-r--r--Source/Core/VideoBackends/Null/TextureCache.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Null/TextureCache.h b/Source/Core/VideoBackends/Null/TextureCache.h
new file mode 100644
index 0000000000..d6ee5b3b7c
--- /dev/null
+++ b/Source/Core/VideoBackends/Null/TextureCache.h
@@ -0,0 +1,60 @@
+// Copyright 2015 Dolphin Emulator Project
+// Licensed under GPLv2+
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include "VideoCommon/TextureCacheBase.h"
+
+namespace Null
+{
+class TextureCache : public TextureCacheBase
+{
+public:
+ TextureCache() {}
+ ~TextureCache() {}
+ void CompileShaders() override {}
+ void DeleteShaders() override {}
+ void ConvertTexture(TCacheEntryBase* entry, TCacheEntryBase* unconverted, void* palette,
+ TlutFormat format) override
+ {
+ }
+
+ void CopyEFB(u8* dst, u32 format, u32 native_width, u32 bytes_per_row, u32 num_blocks_y,
+ u32 memory_stride, PEControl::PixelFormat src_format, const EFBRectangle& src_rect,
+ bool is_intensity, bool scale_by_half) override
+ {
+ }
+
+private:
+ struct TCacheEntry : TCacheEntryBase
+ {
+ TCacheEntry(const TCacheEntryConfig& _config) : TCacheEntryBase(_config) {}
+ ~TCacheEntry() {}
+ void Load(unsigned int width, unsigned int height, unsigned int expanded_width,
+ unsigned int level) override
+ {
+ }
+
+ void FromRenderTarget(u8* dst, PEControl::PixelFormat src_format, const EFBRectangle& src_rect,
+ bool scale_by_half, unsigned int cbufid, const float* colmat) override
+ {
+ }
+
+ void CopyRectangleFromTexture(const TCacheEntryBase* source,
+ const MathUtil::Rectangle<int>& srcrect,
+ const MathUtil::Rectangle<int>& dstrect) override
+ {
+ }
+
+ void Bind(unsigned int stage) override {}
+ bool Save(const std::string& filename, unsigned int level) override { return false; }
+ };
+
+ TCacheEntryBase* CreateTexture(const TCacheEntryConfig& config) override
+ {
+ return new TCacheEntry(config);
+ }
+};
+
+} // Null name space