Merge branch 'master' of https://github.com/billhollings/SPIRV-Cross into msl-pad-arg-buff-structs
This commit is contained in:
commit
6c0e11f907
@ -331,7 +331,7 @@ if (SPIRV_CROSS_STATIC)
|
||||
endif()
|
||||
|
||||
set(spirv-cross-abi-major 0)
|
||||
set(spirv-cross-abi-minor 45)
|
||||
set(spirv-cross-abi-minor 46)
|
||||
set(spirv-cross-abi-patch 0)
|
||||
|
||||
if (SPIRV_CROSS_SHARED)
|
||||
|
@ -1937,6 +1937,18 @@ SpvExecutionModel spvc_compiler_get_execution_model(spvc_compiler compiler)
|
||||
return static_cast<SpvExecutionModel>(compiler->compiler->get_execution_model());
|
||||
}
|
||||
|
||||
void spvc_compiler_update_active_builtins(spvc_compiler compiler)
|
||||
{
|
||||
compiler->compiler->update_active_builtins();
|
||||
}
|
||||
|
||||
spvc_bool spvc_compiler_has_active_builtin(spvc_compiler compiler, SpvBuiltIn builtin, SpvStorageClass storage)
|
||||
{
|
||||
return compiler->compiler->has_active_builtin(static_cast<spv::BuiltIn>(builtin), static_cast<spv::StorageClass>(storage)) ?
|
||||
SPVC_TRUE :
|
||||
SPVC_FALSE;
|
||||
}
|
||||
|
||||
spvc_type spvc_compiler_get_type_handle(spvc_compiler compiler, spvc_type_id id)
|
||||
{
|
||||
// Should only throw if an intentionally garbage ID is passed, but the IDs are not type-safe.
|
||||
|
@ -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 45
|
||||
#define SPVC_C_API_VERSION_MINOR 46
|
||||
/* Bumped if internal implementation details change. */
|
||||
#define SPVC_C_API_VERSION_PATCH 0
|
||||
|
||||
@ -861,6 +861,8 @@ SPVC_PUBLIC_API unsigned spvc_compiler_get_execution_mode_argument(spvc_compiler
|
||||
SPVC_PUBLIC_API unsigned spvc_compiler_get_execution_mode_argument_by_index(spvc_compiler compiler,
|
||||
SpvExecutionMode mode, unsigned index);
|
||||
SPVC_PUBLIC_API SpvExecutionModel spvc_compiler_get_execution_model(spvc_compiler compiler);
|
||||
SPVC_PUBLIC_API void spvc_compiler_update_active_builtins(spvc_compiler compiler);
|
||||
SPVC_PUBLIC_API spvc_bool spvc_compiler_has_active_builtin(spvc_compiler compiler, SpvBuiltIn builtin, SpvStorageClass storage);
|
||||
|
||||
/*
|
||||
* Type query interface.
|
||||
|
Loading…
Reference in New Issue
Block a user