commit | 05a5b53208e1eee47fd8fe6a8871e147833d1a96 | [log] [tgz] |
---|---|---|
author | Roy <lryer@msn.com> | Fri Jan 03 16:21:34 2020 +0800 |
committer | Roy <lryer@msn.com> | Fri Jan 03 16:30:37 2020 +0800 |
tree | 2d541dd5ea22585c81f800756e9178b76f278f83 | |
parent | 6334d594f68c2ba36e3e9bf91aac185ac3875717 [diff] |
Fix glslang can't link multiple AST in a single stage Root cause: GlslangToSpv use symbol structure's ptr as a map key, but multiple shader object can build a new AST. In the AST the the same symbol has different ptr point to their structure, so indext map faild. solution: Add a new map glslangTypeToIdMap to map ptr to symbol id, and use symbol id to index memberRemapper.