Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Kristian Arntzen <post@arntzen-software.no>2019-05-18 11:47:02 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2019-05-18 11:47:02 +0300
commit09c01c2d45868c7649b3a60b5fc9397946745b91 (patch)
tree13ae9abb6f985eac60c1c492648c6aa5e32aacee
parente04bbd09489ed28ed6386bae9bbc9c902d4c2296 (diff)
Fix formatting, update C ABI version.2019-05-20
There are some issues with clang-format which require auto-formatting to be disabled for this file.
-rw-r--r--CMakeLists.txt7
-rw-r--r--spirv_cross_c.cpp6
-rw-r--r--spirv_cross_c.h8
3 files changed, 11 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d1fc0281..8bca53d3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -265,10 +265,11 @@ if (SPIRV_CROSS_STATIC)
endif()
endif()
+set(spirv-cross-abi-major 0)
+set(spirv-cross-abi-minor 9)
+set(spirv-cross-abi-patch 0)
+
if (SPIRV_CROSS_SHARED)
- set(spirv-cross-abi-major 0)
- set(spirv-cross-abi-minor 8)
- set(spirv-cross-abi-patch 0)
set(SPIRV_CROSS_VERSION ${spirv-cross-abi-major}.${spirv-cross-abi-minor}.${spirv-cross-abi-patch})
set(SPIRV_CROSS_INSTALL_LIB_DIR ${CMAKE_INSTALL_PREFIX}/lib)
set(SPIRV_CROSS_INSTALL_INC_DIR ${CMAKE_INSTALL_PREFIX}/include/spirv_cross)
diff --git a/spirv_cross_c.cpp b/spirv_cross_c.cpp
index fe67c9e0..6811d027 100644
--- a/spirv_cross_c.cpp
+++ b/spirv_cross_c.cpp
@@ -1654,9 +1654,9 @@ spvc_constant_id spvc_compiler_get_work_group_size_specialization_constants(spvc
}
spvc_result spvc_compiler_get_active_buffer_ranges(spvc_compiler compiler,
- spvc_variable_id id,
- const spvc_buffer_range **ranges,
- size_t *num_ranges)
+ spvc_variable_id id,
+ const spvc_buffer_range **ranges,
+ size_t *num_ranges)
{
SPVC_BEGIN_SAFE_SCOPE
{
diff --git a/spirv_cross_c.h b/spirv_cross_c.h
index fb460ce3..43eb924f 100644
--- a/spirv_cross_c.h
+++ b/spirv_cross_c.h
@@ -33,7 +33,7 @@ extern "C" {
/* Bumped if ABI or API breaks backwards compatibility. */
#define SPVC_C_API_VERSION_MAJOR 0
/* Bumped if APIs or enumerations are added in a backwards compatible way. */
-#define SPVC_C_API_VERSION_MINOR 8
+#define SPVC_C_API_VERSION_MINOR 9
/* Bumped if internal implementation details change. */
#define SPVC_C_API_VERSION_PATCH 0
@@ -684,9 +684,9 @@ SPVC_PUBLIC_API spvc_constant_id spvc_compiler_get_work_group_size_specializatio
* Maps to C++ API.
*/
SPVC_PUBLIC_API spvc_result spvc_compiler_get_active_buffer_ranges(spvc_compiler compiler,
- spvc_variable_id id,
- const spvc_buffer_range **ranges,
- size_t *num_ranges);
+ spvc_variable_id id,
+ const spvc_buffer_range **ranges,
+ size_t *num_ranges);
/*
* No stdint.h until C99, sigh :(