update options for newer SPIRV-Cross version #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I had some trouble using oryol with metal after upgrading to recent osx/xcode. Updating to the most recent SPIRV-Cross seemed to fix most of it (float[1]/clip_distance errors), this pull request contains some minor changes to handle change in the options api (opts.pad_and_pack_uniform_structs appears to have been removed, not sure).
Applying this change and also updating fips-sprirvcross to point to the latest seems to work. Additionally, I had to change the GLSL version in the shader compile scripts to use ver 420 so I could add "layout (location=0)" specifiers so that the vert/fragment shaders would link in metal, otherwise only very simple shaders would link if the "user(locN)" specifiers happened to line up, I don't know enough about spirv-cross to know if there's a better way to fix this.
Feel free to ignore this if you're not doing metal stuff or focusing on sokol, I just thought it might be helpful.