Skip to content

Commit efc3d29

Browse files
committed
Updated glslang and SPIRV-Cross to the latest revisions.
1 parent cd33c46 commit efc3d29

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Compile/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ file(GLOB_RECURSE glslangSources
3030
${GLSLANG_DIR}/OGLCompilersDLL/*.cpp ${GLSLANG_DIR}/OGLCompilersDLL/*.h
3131
${GLSLANG_DIR}/SPIRV/*.cpp ${GLSLANG_DIR}/SPIRV/*.h)
3232
set(glslResourceSources
33-
${GLSLANG_DIR}/StandAlone/ResourceLimits.cpp ${GLSLANG_DIR}/StandAlone/ResourceLimits.h)
33+
${GLSLANG_DIR}/StandAlone/ResourceLimits.cpp ${GLSLANG_DIR}/glslang/Public/ResourceLimits.h)
3434
file(GLOB spirvCrossSources ${SPIRV_CROSS_DIR}/spirv_*.cpp ${SPIRV_CROSS_DIR}/spirv_*.hpp)
3535

3636
# SPIRV-Tools has too complex of a build configuration to just embed the source in this library,

Compile/SPIRV-Cross

Submodule SPIRV-Cross updated 85 files

Compile/src/Compiler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#include "SPIRV/GlslangToSpv.h"
3737
#include "SPIRV/SPVRemapper.h"
3838
#include "OGLCompilersDLL/InitializeDll.h"
39-
#include "StandAlone/ResourceLimits.h"
39+
#include "glslang/Public/ResourceLimits.h"
4040

4141
#if MSL_GCC || MSL_CLANG
4242
#pragma GCC diagnostic pop
@@ -277,7 +277,7 @@ void Compiler::shutdown()
277277

278278
const TBuiltInResource& Compiler::getDefaultResources()
279279
{
280-
return glslang::DefaultTBuiltInResource;
280+
return *GetDefaultResources();;
281281
}
282282

283283
bool Compiler::compile(Stages& stages, Output &output, const std::string& baseFileName,

Compile/src/Target.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "Preprocessor.h"
2525
#include "SpirVProcessor.h"
2626

27-
#include "StandAlone/ResourceLimits.h"
27+
#include "glslang/Public/ResourceLimits.h"
2828

2929
#include <boost/algorithm/string/classification.hpp>
3030
#include <boost/algorithm/string/split.hpp>
@@ -721,7 +721,7 @@ bool Target::compileImpl(CompiledResult& result, Output& output, Parser& parser,
721721
}
722722

723723
// Read in the resource limits.
724-
TBuiltInResource resources = glslang::DefaultTBuiltInResource;
724+
TBuiltInResource resources = *GetDefaultResources();
725725
if (!m_resourcesFile.empty())
726726
{
727727
std::ifstream stream(m_resourcesFile);

0 commit comments

Comments
 (0)