Enabled caching of glsl state.
We only Initialize/Finalize process every compile because there is a subset of options that interfere with internal glslang state. Until this is remedied in glslang, allow re-use of state except in the cases where we know state will get broken.
Showing
- libshaderc/src/shaderc.cc 11 additions, 55 deletionslibshaderc/src/shaderc.cc
- libshaderc/src/shaderc_private.h 5 additions, 2 deletionslibshaderc/src/shaderc_private.h
- libshaderc_util/include/libshaderc_util/compiler.h 75 additions, 3 deletionslibshaderc_util/include/libshaderc_util/compiler.h
- libshaderc_util/src/compiler.cc 8 additions, 10 deletionslibshaderc_util/src/compiler.cc
- libshaderc_util/src/compiler_test.cc 4 additions, 3 deletionslibshaderc_util/src/compiler_test.cc
Loading
Please register or sign in to comment