Navigation
API > API/Developer > API/Developer/ShaderCompilerCommon
| |
|
| Name |
UE::ShaderMinifier::EMinifyShaderFlags |
| Type |
enum |
| Header File |
/Engine/Source/Developer/ShaderCompilerCommon/Public/ShaderMinifier.h |
| Include Path |
#include "ShaderMinifier.h" |
Syntax
namespace UE
{
namespace ShaderMinifier
{
enum EMinifyShaderFlags
{
None = 0,
OutputReasons = 1 << 1,
OutputStats = 1 << 2,
OutputLines = 1 << 3,
OutputCommentLines = 1 << 4,
}
}
}
Values
| Name |
Remarks |
| None |
|
| OutputReasons |
Add `// REASON: foo_ comments next to emitted code blocks to identify which other block uses it or other reason why it was included |
| OutputStats |
Add a comment describing how many functions, structs, etc. were emitted |
| OutputLines |
Add `#line _ directives for each emitted code block |
| OutputCommentLines |
Keep original global scope comment lines, such as `// #define FOO 123_ that were added by UE shader preprocessor |