Skip to content

Commit 16796e9

Browse files
MSL: Add C API for force native arrays.
1 parent d91e134 commit 16796e9

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ if (SPIRV_CROSS_STATIC)
323323
endif()
324324

325325
set(spirv-cross-abi-major 0)
326-
set(spirv-cross-abi-minor 24)
326+
set(spirv-cross-abi-minor 25)
327327
set(spirv-cross-abi-patch 0)
328328

329329
if (SPIRV_CROSS_SHARED)

spirv_cross_c.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,10 @@ spvc_result spvc_compiler_options_set_uint(spvc_compiler_options options, spvc_c
597597
case SPVC_COMPILER_OPTION_MSL_FORCE_ACTIVE_ARGUMENT_BUFFER_RESOURCES:
598598
options->msl.force_active_argument_buffer_resources = value != 0;
599599
break;
600+
601+
case SPVC_COMPILER_OPTION_MSL_FORCE_NATIVE_ARRAYS:
602+
options->msl.force_native_arrays = value != 0;
603+
break;
600604
#endif
601605

602606
default:

spirv_cross_c.h

Lines changed: 2 additions & 1 deletion
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 24
36+
#define SPVC_C_API_VERSION_MINOR 25
3737
/* Bumped if internal implementation details change. */
3838
#define SPVC_C_API_VERSION_PATCH 0
3939

@@ -572,6 +572,7 @@ typedef enum spvc_compiler_option
572572
SPVC_COMPILER_OPTION_MSL_EMULATE_CUBEMAP_ARRAY = 48 | SPVC_COMPILER_OPTION_MSL_BIT,
573573
SPVC_COMPILER_OPTION_MSL_ENABLE_DECORATION_BINDING = 49 | SPVC_COMPILER_OPTION_MSL_BIT,
574574
SPVC_COMPILER_OPTION_MSL_FORCE_ACTIVE_ARGUMENT_BUFFER_RESOURCES = 50 | SPVC_COMPILER_OPTION_MSL_BIT,
575+
SPVC_COMPILER_OPTION_MSL_FORCE_NATIVE_ARRAYS = 51 | SPVC_COMPILER_OPTION_MSL_BIT,
575576

576577
SPVC_COMPILER_OPTION_INT_MAX = 0x7fffffff
577578
} spvc_compiler_option;

0 commit comments

Comments
 (0)