summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/AbstractTexture.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2017-11-19 17:46:00 +1000
committerStenzek <stenzek@gmail.com>2017-11-22 18:49:33 +1000
commitdb1d9de933a914ff0c35a179d3ba1112fb0bcab1 (patch)
treee1f7be8dc4d4b8f48f50a82ad81ad7f95076ea66 /Source/Core/VideoCommon/AbstractTexture.cpp
parent193763ca3ab62086c5a2f09870ffdc84cbd8ee00 (diff)
AbstractTexture: Drop slow map readback path
Diffstat (limited to 'Source/Core/VideoCommon/AbstractTexture.cpp')
-rw-r--r--Source/Core/VideoCommon/AbstractTexture.cpp67
1 files changed, 0 insertions, 67 deletions
diff --git a/Source/Core/VideoCommon/AbstractTexture.cpp b/Source/Core/VideoCommon/AbstractTexture.cpp
index 109bb52897..896d75feb8 100644
--- a/Source/Core/VideoCommon/AbstractTexture.cpp
+++ b/Source/Core/VideoCommon/AbstractTexture.cpp
@@ -51,73 +51,6 @@ bool AbstractTexture::Save(const std::string& filename, unsigned int level)
level_height);
}
-std::optional<AbstractTexture::RawTextureInfo> AbstractTexture::Map()
-{
- if (m_currently_mapped)
- {
- Unmap();
- m_currently_mapped = false;
- }
- auto result = MapFullImpl();
-
- if (!result.has_value())
- {
- m_currently_mapped = false;
- return {};
- }
-
- m_currently_mapped = true;
- return result;
-}
-
-std::optional<AbstractTexture::RawTextureInfo> AbstractTexture::Map(u32 level, u32 x, u32 y,
- u32 width, u32 height)
-{
- _assert_(level < m_config.levels);
-
- u32 max_level_width = std::max(m_config.width >> level, 1u);
- u32 max_level_height = std::max(m_config.height >> level, 1u);
-
- _assert_(width < max_level_width);
- _assert_(height < max_level_height);
-
- auto result = MapRegionImpl(level, x, y, width, height);
-
- if (!result.has_value())
- {
- m_currently_mapped = false;
- return {};
- }
-
- m_currently_mapped = true;
- return result;
-}
-
-std::optional<AbstractTexture::RawTextureInfo> AbstractTexture::Map(u32 level)
-{
- _assert_(level < m_config.levels);
-
- u32 level_width = std::max(m_config.width >> level, 1u);
- u32 level_height = std::max(m_config.height >> level, 1u);
-
- return Map(level, 0, 0, level_width, level_height);
-}
-
-void AbstractTexture::Unmap()
-{
-}
-
-std::optional<AbstractTexture::RawTextureInfo> AbstractTexture::MapFullImpl()
-{
- return {};
-}
-
-std::optional<AbstractTexture::RawTextureInfo>
-AbstractTexture::MapRegionImpl(u32 level, u32 x, u32 y, u32 width, u32 height)
-{
- return {};
-}
-
bool AbstractTexture::IsCompressedFormat(AbstractTextureFormat format)
{
switch (format)