Skip to content

Commit 029083d

Browse files
committed
add debug info flags to ILogicalDevice::compileShader
1 parent 29687f9 commit 029083d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

include/nbl/video/ILogicalDevice.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,7 @@ class NBL_API2 ILogicalDevice : public core::IReferenceCounted, public IDeviceMe
831831
asset::IShaderCompiler::CCache* writeCache = nullptr;
832832
std::span<const asset::IShaderCompiler::SMacroDefinition> extraDefines = {};
833833
hlsl::ShaderStage stage = hlsl::ShaderStage::ESS_ALL_OR_LIBRARY;
834+
core::bitflag<asset::IShaderCompiler::E_DEBUG_INFO_FLAGS> debugInfoFlags = asset::IShaderCompiler::E_DEBUG_INFO_FLAGS::EDIF_NONE;
834835
};
835836
core::smart_refctd_ptr<asset::IShader> compileShader(const SShaderCreationParameters& creationParams);
836837

src/nbl/video/ILogicalDevice.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,7 @@ core::smart_refctd_ptr<asset::IShader> ILogicalDevice::compileShader(const SShad
360360
commonCompileOptions.preprocessorOptions.extraDefines = creationParams.extraDefines;
361361

362362
commonCompileOptions.stage = creationParams.stage;
363-
commonCompileOptions.debugInfoFlags =
364-
asset::IShaderCompiler::E_DEBUG_INFO_FLAGS::EDIF_SOURCE_BIT |
365-
asset::IShaderCompiler::E_DEBUG_INFO_FLAGS::EDIF_TOOL_BIT;
363+
commonCompileOptions.debugInfoFlags = creationParams.debugInfoFlags;
366364
commonCompileOptions.spirvOptimizer = creationParams.optimizer;
367365
commonCompileOptions.preprocessorOptions.targetSpirvVersion = m_physicalDevice->getLimits().spirvVersion;
368366

0 commit comments

Comments
 (0)