Skip to content

Commit

Permalink
Add missing include for latest glslang (#7365)
Browse files Browse the repository at this point in the history
This change in glslang removes the include of "intermediate.h" from
GlslangToSpv.h:
KhronosGroup/glslang@62de186

As a result, the definition of "class TIntermediate" is removed, and
will fail compilation of MaterialCompiler.cpp when glslang is updated to
a version including the aforementioned change. We fix this by adding an
explicit include to this header in MaterialCompiler.cpp.

Co-authored-by: Powei Feng <powei@google.com>
  • Loading branch information
amaiorano and poweifeng authored Nov 14, 2023
1 parent 766e4f2 commit eebb40d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/matc/src/matc/MaterialCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "ParametersProcessor.h"

#include <GlslangToSpv.h>
#include "glslang/Include/intermediate.h"

#include "sca/builtinResource.h"

Expand Down

0 comments on commit eebb40d

Please sign in to comment.