Remove GlslangToSpv.h dependency on intermediate.h

GlslangToSpv.h only declares functions with opaque references to to
TIntermediate, for which a simple "class TIntermediate;" declaration is
adequate. This means that Include/intermediate.h no longer needs to be
installed as part of glslang's public interface.
This commit is contained in:
Arcady Goldmints-Orlov 2023-11-08 16:54:54 -07:00 committed by arcady-lunarg
parent 52c59ecd3d
commit 62de186c33

View file

@ -35,12 +35,7 @@
#pragma once
#if defined(_MSC_VER) && _MSC_VER >= 1900
#pragma warning(disable : 4464) // relative include path contains '..'
#endif
#include "SpvTools.h"
#include "glslang/Include/intermediate.h"
#include <string>
#include <vector>
@ -48,6 +43,7 @@
#include "Logger.h"
namespace glslang {
class TIntermediate;
void GetSpirvVersion(std::string&);
int GetSpirvGeneratorVersion();