diff options
author | Try <try9998@gmail.com> | 2023-09-06 22:32:42 +0200 |
---|---|---|
committer | Try <try9998@gmail.com> | 2023-09-06 22:32:42 +0200 |
commit | 8af391ec5d2f35a1e1bd7ee5ec9e8c15137d52bd (patch) | |
tree | 2a461da7f825daac71d04254191ced848d235d12 | |
parent | 54997fb4bc3adeb47b9b9f7bb67f1c25eaca2204 (diff) | |
download | SPIRV-Cross-8af391ec5d2f35a1e1bd7ee5ec9e8c15137d52bd.tar.gz SPIRV-Cross-8af391ec5d2f35a1e1bd7ee5ec9e8c15137d52bd.tar.bz2 SPIRV-Cross-8af391ec5d2f35a1e1bd7ee5ec9e8c15137d52bd.zip |
check for SPVFuncImplVariableSizedDescriptor
-rw-r--r-- | spirv_msl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spirv_msl.cpp b/spirv_msl.cpp index 23efd7b5..8471e34f 100644 --- a/spirv_msl.cpp +++ b/spirv_msl.cpp @@ -7290,7 +7290,8 @@ void CompilerMSL::emit_custom_functions() end_scope_decl(); statement(""); - if (msl_options.runtime_array_rich_descriptor) + if (msl_options.runtime_array_rich_descriptor && + spv_function_implementations.count(SPVFuncImplVariableSizedDescriptor) != 0) { statement("template<typename T>"); statement("struct spvDescriptorArray<device T*>"); |