Misc CL fixes
- Use
-O0
for compiling through Clang. Otherwise we can get weird things likei3
types that don't translate to SPIR-V. Requires re-ordering some optimizations before the image pass so that it can get full deref chains. - Parse function parameter decorations, and group decorations, to properly retrieve const/restrict annotations. With this, we now pass the API test fully (thanks @karolherbst for pointing it out).
- Fix using the wrong variable in the int->float rounding pass, which caused it to fail for vectors.
Edited by Jesse Natalie