EDumpShaderDefines

Governs the behavior for adding shader defines to the preprocessed source.

Windows
MacOS
Linux

References

Module

ShaderPreprocessor

Header

/Engine/Source/Developer/ShaderPreprocessor/Public/ShaderPreprocessor.h

Include

#include "ShaderPreprocessor.h"

Syntax

enum EDumpShaderDefines
{
    DontCare,
    DontIncludeDefines,
    AlwaysIncludeDefines,
}

Values

Name

Description

DontCare

Will not be dumped unless Input.DumpDebugInfoPath is set

DontIncludeDefines

No defines

AlwaysIncludeDefines

Defines will be added in the comments

Remarks

Governs the behavior for adding shader defines to the preprocessed source. Can be helpful for the debugging, but makes the source unique which can prevent efficient caching.