2014-02-03 06:02:17 -07:00
|
|
|
// 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() {}
|
2016-08-13 06:56:01 -06:00
|
|
|
bool CompileShaders() override { return true; }
|
2014-02-03 06:02:17 -07:00
|
|
|
void DeleteShaders() override {}
|
|
|
|
void ConvertTexture(TCacheEntryBase* entry, TCacheEntryBase* unconverted, void* palette,
|
|
|
|
TlutFormat format) override
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2017-04-04 07:55:36 -06:00
|
|
|
void CopyEFB(u8* dst, const EFBCopyFormat& format, u32 native_width, u32 bytes_per_row,
|
|
|
|
u32 num_blocks_y, u32 memory_stride, bool is_depth_copy,
|
|
|
|
const EFBRectangle& src_rect, bool scale_by_half) override
|
2014-02-03 06:02:17 -07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
struct TCacheEntry : TCacheEntryBase
|
|
|
|
{
|
|
|
|
TCacheEntry(const TCacheEntryConfig& _config) : TCacheEntryBase(_config) {}
|
|
|
|
~TCacheEntry() {}
|
2017-04-16 03:45:22 -06:00
|
|
|
void Load(u32 level, u32 width, u32 height, u32 row_length, const u8* buffer,
|
|
|
|
size_t buffer_size) override
|
|
|
|
{
|
|
|
|
}
|
2016-12-26 13:33:57 -07:00
|
|
|
void FromRenderTarget(bool is_depth_copy, const EFBRectangle& src_rect, bool scale_by_half,
|
|
|
|
unsigned int cbufid, const float* colmat) override
|
2014-02-03 06:02:17 -07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|