Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaria Volvenkova <d.volvenkova@corp.mail.ru>2018-08-15 15:53:42 +0300
committerRoman Kuznetsov <r.kuznetsow@gmail.com>2018-08-17 13:11:53 +0300
commit5ab189afac15e9e97aef702e69e0d883bc8532b9 (patch)
treea6f705150dff1cfa2e63616c8a77f03bafe69ce6 /drape/texture_types.hpp
parentd4673530fedab33c81e0a5453c43001a2b4ac983 (diff)
Framebuffer and render state refactoring.
Diffstat (limited to 'drape/texture_types.hpp')
-rw-r--r--drape/texture_types.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/drape/texture_types.hpp b/drape/texture_types.hpp
index 20b1cc8ad6..ae08bc1426 100644
--- a/drape/texture_types.hpp
+++ b/drape/texture_types.hpp
@@ -11,6 +11,8 @@ enum class TextureFormat : uint8_t
RGBA8,
Alpha,
RedGreen,
+ DepthStencil,
+ Depth,
Unspecified
};
@@ -34,6 +36,8 @@ inline uint8_t GetBytesPerPixel(TextureFormat format)
case TextureFormat::RGBA8: result = 4; break;
case TextureFormat::Alpha: result = 1; break;
case TextureFormat::RedGreen: result = 2; break;
+ case TextureFormat::DepthStencil: result = 4; break;
+ case TextureFormat::Depth: result = 4; break;
default: ASSERT(false, ()); break;
}
return result;