mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-09 22:00:05 +00:00
check for SPVFuncImplVariableSizedDescriptor
This commit is contained in:
parent
54997fb4bc
commit
8af391ec5d
@ -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*>");
|
||||
|
Loading…
Reference in New Issue
Block a user