When running the SPIRV-Cross command line tool on various input it works most of the time but occasionally it throws
SPIRV-Cross threw an exception: Buffer block cannot be expressed as any of std430, std140, scalar, even with enhanced layouts. You can try flattening this block to support a more flexible layout.
Here is a working and a failing example
Working sample https://vcs.codecreation.dev/spirv-samples/sample1.html
Problematic sample https://vcs.codecreation.dev/spirv-samples/sample2.html
I'm running these as spirv-cross.exe sample1.spv (works - outputs a decompilation) and spirv-cross.exe sample2.spv (fails)