OSDN Git Service

Texture load functionality for integer types
authorAlexis Hetu <sugoi@google.com>
Fri, 23 Oct 2015 18:43:54 +0000 (14:43 -0400)
committerAlexis Hétu <sugoi@google.com>
Mon, 26 Oct 2015 17:59:08 +0000 (17:59 +0000)
commit92ac42fa41ce06b8cb67be6e92f41e40a13d034b
treee53530ae89233ce723a0cbb19d5b395daad54363
parentd3a2d3d7bf4840b997fe49e40dff90ebe01b3689
Texture load functionality for integer types

- Added cases required to load integer type textures into
  swiftshader's internal formats.
- Cleaned up copy functions that simply perform a memcpy
  for a given number of bytes per row.
- Removed unused functionality for mini floats. Right now,
  all we need is the ability to import these formats, so
  there's currently no need to keep the export code.

Change-Id: I61500c41e668f885d3ec1e687b6f888c117221f2
Reviewed-on: https://swiftshader-review.googlesource.com/4140
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
src/Common/Math.hpp
src/OpenGL/common/Image.cpp
src/OpenGL/common/Image.hpp