Support for automap options and resource binding shift (#2834)
authorHai Nguyen <379079+chaoticbob@users.noreply.github.com>
Mon, 29 Nov 2021 21:23:01 +0000 (16:23 -0500)
committerGitHub <noreply@github.com>
Mon, 29 Nov 2021 21:23:01 +0000 (14:23 -0700)
commitfebbeb4f83a92ae60dceb1d3e85bd45782ecd6c0
treeab87874cd1efc182506468a1fc15d21b345e207d
parent0bdfc73e9c2f1ad67238da3e3a277eaafd0b18b7
Support for automap options and resource binding shift (#2834)

* Support for automap options

- Added glslang_shader_options_t with enums for auto map bindings and
  auto map locations.
- Added options param to glslang_shader_parse.
- Modified glslang_shader_parse to call appropriate auto map function if
  auto map bits are set.

* Refactored auto map for C interface

- Added glslang_shader_set_options to independently set options instead
  of being a param on an existing function.
- Added glslang_program_map_io to call mapIO so auto map location
  actually works.

* Added support for shifting resource bindings

- Added resource binding shift functions to match C++ interface

* Uncommented preprocessor call that was commented out for debugging
glslang/CInterface/glslang_c_interface.cpp
glslang/Include/glslang_c_interface.h
glslang/Include/glslang_c_shader_types.h