Skip to content

Commit

Permalink
check for SPVFuncImplVariableSizedDescriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
Try committed Sep 6, 2023
1 parent 54997fb commit 8af391e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spirv_msl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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*>");
Expand Down

0 comments on commit 8af391e

Please sign in to comment.