From 09dc76f68af58be22849dac77b2b773f53202495 Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Mon, 15 Feb 2021 11:43:46 +0100 Subject: [PATCH] c: Add missing IOS_SUPPORT_BASE_VERTEX_INSTANCE option. --- CMakeLists.txt | 2 +- spirv_cross_c.cpp | 4 ++++ spirv_cross_c.h | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c112088..e66dd791 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -331,7 +331,7 @@ if (SPIRV_CROSS_STATIC) endif() set(spirv-cross-abi-major 0) -set(spirv-cross-abi-minor 44) +set(spirv-cross-abi-minor 45) set(spirv-cross-abi-patch 0) if (SPIRV_CROSS_SHARED) diff --git a/spirv_cross_c.cpp b/spirv_cross_c.cpp index a542346e..ace5376b 100644 --- a/spirv_cross_c.cpp +++ b/spirv_cross_c.cpp @@ -701,6 +701,10 @@ spvc_result spvc_compiler_options_set_uint(spvc_compiler_options options, spvc_c case SPVC_COMPILER_OPTION_MSL_FORCE_SAMPLE_RATE_SHADING: options->msl.force_sample_rate_shading = value != 0; break; + + case SPVC_COMPILER_OPTION_MSL_IOS_SUPPORT_BASE_VERTEX_INSTANCE: + options->msl.ios_support_base_vertex_instance = value != 0; + break; #endif default: diff --git a/spirv_cross_c.h b/spirv_cross_c.h index 811bb8cf..1511a1db 100644 --- a/spirv_cross_c.h +++ b/spirv_cross_c.h @@ -40,7 +40,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 44 +#define SPVC_C_API_VERSION_MINOR 45 /* Bumped if internal implementation details change. */ #define SPVC_C_API_VERSION_PATCH 0 @@ -658,6 +658,7 @@ typedef enum spvc_compiler_option SPVC_COMPILER_OPTION_MSL_EMULATE_SUBGROUPS = 73 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_FIXED_SUBGROUP_SIZE = 74 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_FORCE_SAMPLE_RATE_SHADING = 75 | SPVC_COMPILER_OPTION_MSL_BIT, + SPVC_COMPILER_OPTION_MSL_IOS_SUPPORT_BASE_VERTEX_INSTANCE = 76 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_INT_MAX = 0x7fffffff } spvc_compiler_option;