Skip to main content

r.ShaderCompiler.DebugDumpDetailedShaderSource

Var

Unreal Engine Var console variable.

rShaderCompilerDebugDumpDetailedShaderSource

Description

If true, and if the preprocessed job cache is enabled, this will dump multiple copies of the shader source for any job which has debug output enabled: 1. The unmodified output of the preprocessing step as constructed by the PreprocessShader implementation of the IShaderFormat (Preprocessed_.usf 2. The stripped version of the above (with comments, line directives, and whitespace-only lines removed), which is the version hashed for inclusion in the job input hash when the preprocessed job cache is enabled (Stripped_.usf) 3. The final source as passed to the platform compiler (this will differ if the IShaderFormat compile function applies further modifications to the source after preprocessing; otherwise this will be the same as 2 above (.usf) If false, or the preprocessed job cache is disabled, this will simply dump whatever source is passed to the compiler (equivalent to either 1 or 3 depending on if the IShaderFormat implementation modifies the source in the compile step.

Usage

r.ShaderCompiler.DebugDumpDetailedShaderSource [value]

Set via the console (~) or in DefaultEngine.ini / DefaultGame.ini.