Skip to content

Commit

Permalink
Merge pull request KhronosGroup#2197 from Try/rich-descriptor-fixup
Browse files Browse the repository at this point in the history
Fixup check for SPVFuncImplVariableSizedDescriptor
  • Loading branch information
HansKristian-Work authored Sep 12, 2023
2 parents 54997fb + 8af391e commit 5e963d6
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 5e963d6

Please sign in to comment.