From 8af391ec5d2f35a1e1bd7ee5ec9e8c15137d52bd Mon Sep 17 00:00:00 2001 From: Try Date: Wed, 6 Sep 2023 22:32:42 +0200 Subject: [PATCH] check for SPVFuncImplVariableSizedDescriptor --- spirv_msl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spirv_msl.cpp b/spirv_msl.cpp index 23efd7b58..8471e34f3 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"); statement("struct spvDescriptorArray");