Parser: Implement extension GL_AMD_gpu_shader_half_float.
- Add built-in types: float16_t, f16vec, f16mat.
- Add support of half float constant: hf, HF.
- Extend built-in floating-point operators: +, -, *, /, ++, --, +=, -=,
*=, /=, ==, !=, >=, <=, >, <.
- Add support of type conversions: float16_t -> XXX, XXX -> float16_t.
- Add new built-in functions.
diff --git a/SPIRV/CMakeLists.txt b/SPIRV/CMakeLists.txt
index ad72276..2c65d71 100755
--- a/SPIRV/CMakeLists.txt
+++ b/SPIRV/CMakeLists.txt
@@ -11,10 +11,12 @@
doc.cpp)
set(HEADERS
+ bitutils.h
spirv.hpp
GLSL.std.450.h
GLSL.ext.KHR.h
GlslangToSpv.h
+ hex_float.h
Logger.h
SpvBuilder.h
spvIR.h
@@ -26,8 +28,9 @@
doc.h)
if(ENABLE_AMD_EXTENSIONS)
- set(HEADERS
- GLSL.ext.AMD.h)
+ list(APPEND
+ HEADERS
+ GLSL.ext.AMD.h)
endif(ENABLE_AMD_EXTENSIONS)
add_library(SPIRV STATIC ${SOURCES} ${HEADERS})