Merge pull request #2197 from Try/rich-descriptor-fixup

Fixup check for SPVFuncImplVariableSizedDescriptor
This commit is contained in:
Hans-Kristian Arntzen 2023-09-12 11:42:26 +02:00 committed by GitHub
commit 5e963d62fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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*>");