diff options
| author | Stenzek <stenzek@gmail.com> | 2017-10-30 22:00:15 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2017-11-22 18:47:04 +1000 |
| commit | c2cc128f1b6be695a4facd3c0fd697a24c3df17a (patch) | |
| tree | f1785f3044c609d6739b8b10a97c8243802336fb /Source/Core/VideoCommon/AbstractTexture.h | |
| parent | 56afebeb44f1ace990d9383e9b840fdc27610029 (diff) | |
AbstractTexture: Implement Save using new common methods
Diffstat (limited to 'Source/Core/VideoCommon/AbstractTexture.h')
| -rw-r--r-- | Source/Core/VideoCommon/AbstractTexture.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/AbstractTexture.h b/Source/Core/VideoCommon/AbstractTexture.h index d2ef2272fc..c18e1f17d3 100644 --- a/Source/Core/VideoCommon/AbstractTexture.h +++ b/Source/Core/VideoCommon/AbstractTexture.h @@ -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); |
