OSDN Git Service

Floating point renderbuffer support
authorAlexis Hetu <sugoi@google.com>
Thu, 12 Nov 2015 21:36:34 +0000 (16:36 -0500)
committerAlexis Hétu <sugoi@google.com>
Thu, 26 Nov 2015 20:52:23 +0000 (20:52 +0000)
commitc8f95e8ad402f98527d1882c283138c1da1ca479
treeea076e773955e515d4d20beb4438b1af924b2841
parentf14891d79359e3bc3a36bdae60c6b735d23a9eaa
Floating point renderbuffer support

It is now possible to use floating point renderbuffers and read
the data back from them. The changes include:
- Modified glReadPixels so that it always uses the blitter to
  copy the data to the external buffer.
- Added new types to both Framebuffer and some utility functions.
- Added the new ValidReadPixelsFormatType function to validate the
  glReadPixels format/type combo, which had a bit more
  possibilities than the RGBA/UNSIGNED BYTE combo previously used.

Change-Id: I1726ea57c4f7aa85bf0ffa7f323dc6a16abc34ff
Reviewed-on: https://swiftshader-review.googlesource.com/4260
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
src/OpenGL/libGLESv2/Context.cpp
src/OpenGL/libGLESv2/Context.h
src/OpenGL/libGLESv2/Framebuffer.cpp
src/OpenGL/libGLESv2/libGLESv2.cpp
src/OpenGL/libGLESv2/libGLESv3.cpp
src/OpenGL/libGLESv2/utilities.cpp
src/OpenGL/libGLESv2/utilities.h