Skip to content

Commit 09c01c2

Browse files
Fix formatting, update C ABI version.
There are some issues with clang-format which require auto-formatting to be disabled for this file.
1 parent e04bbd0 commit 09c01c2

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,11 @@ if (SPIRV_CROSS_STATIC)
265265
endif()
266266
endif()
267267

268+
set(spirv-cross-abi-major 0)
269+
set(spirv-cross-abi-minor 9)
270+
set(spirv-cross-abi-patch 0)
271+
268272
if (SPIRV_CROSS_SHARED)
269-
set(spirv-cross-abi-major 0)
270-
set(spirv-cross-abi-minor 8)
271-
set(spirv-cross-abi-patch 0)
272273
set(SPIRV_CROSS_VERSION ${spirv-cross-abi-major}.${spirv-cross-abi-minor}.${spirv-cross-abi-patch})
273274
set(SPIRV_CROSS_INSTALL_LIB_DIR ${CMAKE_INSTALL_PREFIX}/lib)
274275
set(SPIRV_CROSS_INSTALL_INC_DIR ${CMAKE_INSTALL_PREFIX}/include/spirv_cross)

spirv_cross_c.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,9 +1654,9 @@ spvc_constant_id spvc_compiler_get_work_group_size_specialization_constants(spvc
16541654
}
16551655

16561656
spvc_result spvc_compiler_get_active_buffer_ranges(spvc_compiler compiler,
1657-
spvc_variable_id id,
1658-
const spvc_buffer_range **ranges,
1659-
size_t *num_ranges)
1657+
spvc_variable_id id,
1658+
const spvc_buffer_range **ranges,
1659+
size_t *num_ranges)
16601660
{
16611661
SPVC_BEGIN_SAFE_SCOPE
16621662
{

spirv_cross_c.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extern "C" {
3333
/* Bumped if ABI or API breaks backwards compatibility. */
3434
#define SPVC_C_API_VERSION_MAJOR 0
3535
/* Bumped if APIs or enumerations are added in a backwards compatible way. */
36-
#define SPVC_C_API_VERSION_MINOR 8
36+
#define SPVC_C_API_VERSION_MINOR 9
3737
/* Bumped if internal implementation details change. */
3838
#define SPVC_C_API_VERSION_PATCH 0
3939

@@ -684,9 +684,9 @@ SPVC_PUBLIC_API spvc_constant_id spvc_compiler_get_work_group_size_specializatio
684684
* Maps to C++ API.
685685
*/
686686
SPVC_PUBLIC_API spvc_result spvc_compiler_get_active_buffer_ranges(spvc_compiler compiler,
687-
spvc_variable_id id,
688-
const spvc_buffer_range **ranges,
689-
size_t *num_ranges);
687+
spvc_variable_id id,
688+
const spvc_buffer_range **ranges,
689+
size_t *num_ranges);
690690

691691
/*
692692
* No stdint.h until C99, sigh :(

0 commit comments

Comments
 (0)