summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2016-11-04 18:29:58 -0700
committerRomain Guy <romainguy@google.com>2016-11-08 17:58:54 -0800
commit12ae9a073654ee4d65ed7e5e92c1dfa801697d63 (patch)
tree3e51862dbf71d6642b3453d2ef103a31fc4b4fc4 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent780b624fb5632c5baa8e50bc3ba52ec3772e7be4 (diff)
Improve support for half floats and expose as public API
Half floats (often called fp16) are commonly used to store floating point data efficiently without having to use lossy compression schemes. Half floats are commonly used in the following cases: - Wide gamut colors - Meshes (OpenGL and Vulkan) - HDR images/textures - Lookup tables as textures (OpenGL and Vulkan), particularly in physically-based renderers - Maching learning/compute OpenGL and Renderscript both provide Java language APIs that accept half floats but the platform offers no support to create fp16 values from fp32 data. The Half class is an IEEE 754 compliant implementation of half floats that can be used to feed OpenGL and Renderscript properly encoded values. A comprehensive series of test is also added to CTS. Test: cts-tradefed run singleCommand cts-dev --module CtsUtilTestCases --test android.util.cts.HalfTest Bug: 29940137 Change-Id: I908bde7b3c6f65f7a24e0ab5652be4d16cc0358d
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions