diff options
Diffstat (limited to 'drape/texture_types.hpp')
-rw-r--r-- | drape/texture_types.hpp | 4 |
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; |