Skip to content

Commit

Permalink
Remove GlslangToSpv.h dependency on intermediate.h
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
arcady-lunarg committed Nov 11, 2023
1 parent 52c59ec commit 62de186
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions SPIRV/GlslangToSpv.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,15 @@

#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>

#include "Logger.h"

namespace glslang {
class TIntermediate;

void GetSpirvVersion(std::string&);
int GetSpirvGeneratorVersion();
Expand Down

0 comments on commit 62de186

Please sign in to comment.