mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-04-27 06:41:17 -05:00
AbstractTexture: Implement Save using new common methods
This commit is contained in:
@@ -17,8 +17,8 @@ class AbstractTexture
|
||||
public:
|
||||
explicit AbstractTexture(const TextureConfig& c);
|
||||
virtual ~AbstractTexture();
|
||||
|
||||
virtual void Bind(unsigned int stage) = 0;
|
||||
bool Save(const std::string& filename, unsigned int level);
|
||||
|
||||
struct RawTextureInfo
|
||||
{
|
||||
@@ -43,6 +43,8 @@ public:
|
||||
virtual void Load(u32 level, u32 width, u32 height, u32 row_length, const u8* buffer,
|
||||
size_t buffer_size) = 0;
|
||||
|
||||
bool Save(const std::string& filename, unsigned int level);
|
||||
|
||||
static bool IsCompressedFormat(AbstractTextureFormat format);
|
||||
static size_t CalculateStrideForFormat(AbstractTextureFormat format, u32 row_length);
|
||||
static size_t GetTexelSizeForFormat(AbstractTextureFormat format);
|
||||
|
||||
Reference in New Issue
Block a user