Skip to content

Commit 5e963d6

Browse files
Merge pull request #2197 from Try/rich-descriptor-fixup
Fixup check for SPVFuncImplVariableSizedDescriptor
2 parents 54997fb + 8af391e commit 5e963d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spirv_msl.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -7290,7 +7290,8 @@ void CompilerMSL::emit_custom_functions()
72907290
end_scope_decl();
72917291
statement("");
72927292

7293-
if (msl_options.runtime_array_rich_descriptor)
7293+
if (msl_options.runtime_array_rich_descriptor &&
7294+
spv_function_implementations.count(SPVFuncImplVariableSizedDescriptor) != 0)
72947295
{
72957296
statement("template<typename T>");
72967297
statement("struct spvDescriptorArray<device T*>");

0 commit comments

Comments
 (0)