| 1 |
#pragma once |
| 2 |
|
| 3 |
#include <memory> |
| 4 |
#include "VideoBackends/Software/SWTexture.h" |
| 5 |
#include "VideoBackends/Software/TextureEncoder.h" |
| 6 |
#include "VideoCommon/TextureCacheBase.h" |
| 7 |
|
| 8 |
namespace SW |
| 9 |
{ |
| 10 |
class TextureCache : public TextureCacheBase |
| 11 |
{ |
| 12 |
protected: |
| 13 |
void CopyEFB(AbstractStagingTexture* dst, const EFBCopyParams& params, u32 native_width, |
| 14 |
u32 bytes_per_row, u32 num_blocks_y, u32 memory_stride, |
| 15 |
const MathUtil::Rectangle<int>& src_rect, bool scale_by_half, bool linear_filter, |
| 16 |
float y_scale, float gamma, bool clamp_top, bool clamp_bottom, |
| 17 |
const std::array<u32, 3>& filter_coefficients) override |
| 18 |
{ |
| 19 |
TextureEncoder::Encode(dst, params, native_width, bytes_per_row, num_blocks_y, memory_stride, |
| 20 |
src_rect, scale_by_half, y_scale, gamma); |
| 21 |
} |
| 22 |
void CopyEFBToCacheEntry(RcTcacheEntry& entry, bool is_depth_copy, |
| 23 |
const MathUtil::Rectangle<int>& src_rect, bool scale_by_half, |
| 24 |
bool linear_filter, EFBCopyFormat dst_format, bool is_intensity, |
| 25 |
float gamma, bool clamp_top, bool clamp_bottom, |
| 26 |
const std::array<u32, 3>& filter_coefficients) override |
| 27 |
{ |
| 28 |
|
| 29 |
} |
| 30 |
}; |
| 31 |
|
| 32 |
} |