KhronosGroup / SPIRV-Cross

SPIRV-Cross is a practical tool and library for performing reflection on SPIR-V and disassembling SPIR-V back to high level languages.
Apache License 2.0
1.96k stars 549 forks source link

Use recursive template for spvArrayCopy #2304

Closed etang-cw closed 2 months ago

etang-cw commented 2 months ago

I realize it's unlikely to have a >6-deep array, but the limitation was still bothering me

There's a comment on the old code saying you couldn't use recursive templates, but I couldn't get the recursive template to break on anything I tried, including Xcode 8 targeting macOS 10.11, macOS 10.13's online compiler, or Xcode 14 targeting iOS 8. Do you remember why you originally put in that comment? If so, maybe we should add where it fails to that comment so it can be removed in the future if support for whatever it fails on is ever dropped.