Skip to content

Commit d4bb5c0

Browse files
committed
Include all source code with DXC
1 parent 5b82450 commit d4bb5c0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/nbl/asset/utils/CHLSLCompiler.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,14 @@ core::smart_refctd_ptr<ICPUShader> CHLSLCompiler::compileToSPIRV(const char* cod
288288
L"-T", targetProfile.c_str(),
289289

290290
// These are debug only
291-
L"-Zi", // Enables debug information
292-
L"-Qembed_debug", //Embeds debug information
293-
L"-fspv-debug=file" // Embeds debug information
291+
DXC_ARG_DEBUG,
292+
L"-Qembed_debug",
293+
L"-fspv-debug=vulkan-with-source",
294+
L"-fspv-debug=file"
294295
};
295296

296297
const uint32_t nonDebugArgs = 5;
297-
const uint32_t allArgs = nonDebugArgs + 3;
298+
const uint32_t allArgs = nonDebugArgs + 4;
298299

299300
auto compileResult = dxcCompile(this, newCode, &arguments[0], hlslOptions.genDebugInfo ? allArgs : nonDebugArgs, hlslOptions);
300301

0 commit comments

Comments
 (0)