diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-05-16 21:18:57 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-05-16 21:30:17 +0300 |
commit | 90aff807ab9c3b75511f49e8e22daa39c76b9b8a (patch) | |
tree | 36bc9f57eb63825b969c25ebb0b25692434d4e17 /source/blender/gpu/intern | |
parent | ddc5896c81ad247fac440b86657b9843c315dd88 (diff) |
Draw Manager: Texture Memory usage improvement.
-Use 11_11_10 buffers for hdr content.
-Eevee compositing share 1 buffer if bloom and DOF are both activated.
-Fix slowdown when resizing EEVEE viewport.
-Removed DRW_BUF_*** enums causing confusion.
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r-- | source/blender/gpu/intern/gpu_texture.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_texture.c b/source/blender/gpu/intern/gpu_texture.c index 4be425b7eb9..12b0fb4c0e2 100644 --- a/source/blender/gpu/intern/gpu_texture.c +++ b/source/blender/gpu/intern/gpu_texture.c @@ -158,6 +158,7 @@ static GLenum gpu_texture_get_format( case GPU_DEPTH24_STENCIL8: case GPU_DEPTH_COMPONENT32F: case GPU_RGBA8: + case GPU_R11F_G11F_B10F: *bytesize = 4; break; case GPU_DEPTH_COMPONENT24: @@ -188,6 +189,7 @@ static GLenum gpu_texture_get_format( case GPU_R16F: return GL_R16F; case GPU_R8: return GL_R8; /* Special formats texture & renderbuffer */ + case GPU_R11F_G11F_B10F: return GL_R11F_G11F_B10F; case GPU_DEPTH24_STENCIL8: return GL_DEPTH24_STENCIL8; /* Texture only format */ /* ** Add Format here **/ |