This change adds new commands to matinfo to print dictionaries. This feature is useful to debug dictionaries, and I just used it to identify that using a shared dictionary would save ~12 KiB in the Android build. The macOS build (GLSL + Metal) would go down to 71 KiB from 136 KiB. The SPIRV to Metal conversion leaves leading spaces and some comments. This change also runs the shrinker on optimized Metal shaders to further reduce the size of shaders.
Matinfo
matinfo lists the content of a compiled material as output by matc. This tool is meant to be
used for debug purpose only.
Usage
$ matinfo [options] <material file>