Support for ASTC compressed textures wrapped in KTX files 79/54479/9
authorTom Robinson <tom.robinson@samsung.com>
Tue, 15 Dec 2015 11:34:47 +0000 (11:34 +0000)
committerTom Robinson <tom.robinson@samsung.com>
Fri, 8 Jan 2016 16:40:17 +0000 (16:40 +0000)
commit7223cb68283116d53454b12c0cf15fda306c2172
tree62c9e559c60ee6d90e721d765fac6fb5ff56040f
parent6b1c0fad25a98731ee635a3bea835529d4c475a1
Support for ASTC compressed textures wrapped in KTX files

ASTC is supported by OpenGL ES 3.1 and above.
To build this patch with ASTC support, a GLES 31 context must be specified.

To build for desktop with configure, the gles version must be set to 31.
Here is an example configure line:
CXXFLAGS="-g -O0 -Wno-unused-local-typedefs" CXX="ccache g++" ./configure --prefix=$DESKTOP_PREFIX --enable-debug=yes --enable-profile=UBUNTU --enable-gles=31

With GBS, add the following to your gbs build line:
--define "%target_gles_version 31"

Change-Id: I4f54f894dd4b8998f16aa98d3d0a06606f0eb7a2
build/tizen/CMakeLists.txt
examples/compressed-texture-formats/compressed-texture-formats-example.cpp [new file with mode: 0644]
resources/images/tx-astc-4x4-linear.ktx [new file with mode: 0644]
resources/images/tx-astc-4x4-srgb.ktx [new file with mode: 0644]
resources/images/tx-etc1.ktx [new file with mode: 0644]