Skip to content

Commit 5112ade

Browse files
author
devsh
committed
Merge remote-tracking branch 'remotes/origin/compute_ptr_2'
2 parents 1f6daf1 + ebb62e2 commit 5112ade

File tree

5 files changed

+9
-20
lines changed

5 files changed

+9
-20
lines changed

3rdparty/CMakeLists.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,6 @@ target_include_directories(SPIRV PUBLIC "${GLSLANG_GENERATED_INCLUDEDIR}")
161161
set(SHADERC_SKIP_TESTS ON CACHE INTERNAL "Skip shaderc tests?")
162162
set(SHADERC_SKIP_INSTALL ON CACHE INTERNAL "Install shaderc?")
163163

164-
# if it doesn't work without the `touch` on Linux, then fetch the latest submodule head of shaderc and try again
165-
# https://github.com/google/shaderc/issues/568
166-
if (UNIX)
167-
file(WRITE ${THIRD_PARTY_SOURCE_DIR}/shaderc/libshaderc/libshaderc_combined.a "")
168-
endif()
169164
add_subdirectory(shaderc shaderc EXCLUDE_FROM_ALL)
170165

171166
# libjpeg-turbo
@@ -471,7 +466,6 @@ set(NBL_3RDPARTY_TARGETS
471466
simdjson
472467
nlohmann_json
473468
glslang
474-
OGLCompiler
475469
OSDependent
476470
MachineIndependent
477471
GenericCodeGen
@@ -497,9 +491,6 @@ endif()
497491
if (NBL_BUILD_IMGUI)
498492
list(APPEND NBL_3RDPARTY_TARGETS imgui implot imtestsuite imtestengine imguizmo)
499493
endif()
500-
if(ENABLE_HLSL)
501-
list(APPEND NBL_3RDPARTY_TARGETS HLSL)
502-
endif()
503494

504495
foreach(trgt IN LISTS NBL_3RDPARTY_TARGETS)
505496
if(NBL_DYNAMIC_MSVC_RUNTIME)

3rdparty/glslang

3rdparty/shaderc

Submodule shaderc updated 76 files

src/nbl/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,6 @@ if(NBL_STATIC_BUILD)
712712
nbl_install_lib(glslang)
713713
nbl_install_lib(GenericCodeGen)
714714
nbl_install_lib(MachineIndependent)
715-
nbl_install_lib(HLSL)
716715
nbl_install_lib(jpeg-static)
717716
if (_NBL_COMPILE_WITH_OPEN_EXR_)
718717
nbl_install_lib(OpenEXR)
@@ -726,7 +725,6 @@ if(NBL_STATIC_BUILD)
726725
nbl_install_lib(SPIRV)
727726
nbl_install_lib(SPIRV-Tools-static) # TODO: make this function/macro work with alias target
728727
nbl_install_lib(SPIRV-Tools-opt)
729-
nbl_install_lib(OGLCompiler)
730728
nbl_install_lib(OSDependent)
731729
nbl_install_lib(zlibstatic)
732730
nbl_install_lib(simdjson)

src/nbl/asset/utils/CGLSLCompiler.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ namespace nbl::asset::impl
103103
{
104104
auto res_str = std::move(result.contents);
105105
//employ encloseWithinExtraInclGuards() in order to prevent infinite loop of (not necesarilly direct) self-inclusions while other # directives (incl guards among them) are disabled
106-
CGLSLCompiler::disableAllDirectivesExceptIncludes(res_str);
107-
disableGlDirectives(res_str);
108-
res_str = CGLSLCompiler::encloseWithinExtraInclGuards(std::move(res_str), m_maxInclCnt, name.string().c_str());
106+
//CGLSLCompiler::disableAllDirectivesExceptIncludes(res_str);
107+
//disableGlDirectives(res_str);
108+
//res_str = CGLSLCompiler::encloseWithinExtraInclGuards(std::move(res_str), m_maxInclCnt, name.string().c_str());
109109

110110
res->content_length = res_str.size();
111111
res->content = new char[res_str.size() + 1u];
@@ -145,8 +145,8 @@ std::string CGLSLCompiler::preprocessShader(std::string&& code, IShader::E_SHADE
145145
insertion << "#define " << define.identifier << " " << define.definition << "\n";
146146
insertIntoStart(code,std::move(insertion));
147147
}
148-
disableAllDirectivesExceptIncludes(code);
149-
disableGlDirectives(code);
148+
//disableAllDirectivesExceptIncludes(code);
149+
//disableGlDirectives(code);
150150
shaderc::Compiler comp;
151151
shaderc::CompileOptions options;
152152
options.SetTargetSpirv(shaderc_spirv_version_1_6);
@@ -164,8 +164,8 @@ std::string CGLSLCompiler::preprocessShader(std::string&& code, IShader::E_SHADE
164164
}
165165

166166
auto resolvedString = std::string(res.cbegin(), std::distance(res.cbegin(), res.cend()));
167-
reenableDirectives(resolvedString);
168-
reenableGlDirectives(resolvedString);
167+
//reenableDirectives(resolvedString);
168+
//reenableGlDirectives(resolvedString);
169169
return resolvedString;
170170
}
171171

0 commit comments

Comments
 (0)