Skip to content

Commit 8fc9f74

Browse files
committed
Disable writing shader debug stuff to file
1 parent 5642e40 commit 8fc9f74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/nbl/asset/utils/CHLSLCompiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ std::string CHLSLCompiler::preprocessShader(std::string&& code, IShader::E_SHADE
394394
}
395395

396396
// for debugging cause MSVC doesn't like to show more than 21k LoC in TextVisualizer
397-
if constexpr (true)
397+
if constexpr (false)
398398
{
399399
system::ISystem::future_t<core::smart_refctd_ptr<system::IFile>> future;
400400
m_system->createFile(future,system::path(preprocessOptions.sourceIdentifier).parent_path()/"preprocessed.hlsl",system::IFileBase::ECF_WRITE);

src/nbl/video/ILogicalDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ core::smart_refctd_ptr<asset::ICPUShader> ILogicalDevice::compileShader(const SS
403403
}
404404

405405
// for debugging
406-
if constexpr (true)
406+
if constexpr (false)
407407
{
408408
system::ISystem::future_t<core::smart_refctd_ptr<system::IFile>> future;
409409
m_physicalDevice->getSystem()->createFile(future, system::path(creationParams.cpushader->getFilepathHint()).parent_path() / "compiled.spv", system::IFileBase::ECF_WRITE);

0 commit comments

Comments
 (0)