From 5ab189afac15e9e97aef702e69e0d883bc8532b9 Mon Sep 17 00:00:00 2001 From: Daria Volvenkova Date: Wed, 15 Aug 2018 15:53:42 +0300 Subject: Framebuffer and render state refactoring. --- drape/texture_types.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drape/texture_types.hpp') 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; -- cgit v1.2.3