diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2017-05-29 17:02:09 -0500 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2017-11-17 19:47:56 -0600 |
| commit | 79387dddb24ddf035b70cd9379a42368dcd49e93 (patch) | |
| tree | 7b783c46e1ffd052842f11112f58c61993f0af1b /Source/Core/VideoBackends/Software/TextureCache.h | |
| parent | 84ca9a4aec0048e5ac01caea8f8be9210eb947f6 (diff) | |
Add support for hybrid XFB
Diffstat (limited to 'Source/Core/VideoBackends/Software/TextureCache.h')
| -rw-r--r-- | Source/Core/VideoBackends/Software/TextureCache.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Software/TextureCache.h b/Source/Core/VideoBackends/Software/TextureCache.h new file mode 100644 index 0000000000..82c2ce9f55 --- /dev/null +++ b/Source/Core/VideoBackends/Software/TextureCache.h @@ -0,0 +1,41 @@ +#pragma once + +#include <memory> + +#include "VideoBackends/Software/EfbCopy.h" +#include "VideoBackends/Software/SWTexture.h" +#include "VideoCommon/TextureCacheBase.h" + +namespace SW +{ + +class TextureCache : public TextureCacheBase +{ +public: + bool CompileShaders() override { return true; } + void DeleteShaders() override {} + void ConvertTexture(TCacheEntry* entry, TCacheEntry* unconverted, const void* palette, + TLUTFormat format) override + { + } + void CopyEFB(u8* dst, const EFBCopyParams& params, u32 native_width, u32 bytes_per_row, + u32 num_blocks_y, u32 memory_stride, const EFBRectangle& src_rect, + bool scale_by_half) override + { + EfbCopy::CopyEfb(); + } + +private: + std::unique_ptr<AbstractTexture> CreateTexture(const TextureConfig& config) override + { + return std::make_unique<SWTexture>(config); + } + + void CopyEFBToCacheEntry(TCacheEntry* entry, bool is_depth_copy, const EFBRectangle& src_rect, + bool scale_by_half, unsigned int cbuf_id, const float* colmat) override + { + EfbCopy::CopyEfb(); + } +}; + +} // namespace SW |
