diff options
author | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2018-08-15 15:53:42 +0300 |
---|---|---|
committer | Roman Kuznetsov <r.kuznetsow@gmail.com> | 2018-08-17 13:11:53 +0300 |
commit | 5ab189afac15e9e97aef702e69e0d883bc8532b9 (patch) | |
tree | a6f705150dff1cfa2e63616c8a77f03bafe69ce6 /drape/texture_types.hpp | |
parent | d4673530fedab33c81e0a5453c43001a2b4ac983 (diff) |
Framebuffer and render state refactoring.
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; |