Navigation
API > API/Developer > API/Developer/ShaderCompilerCommon
References
| |
|
| Module |
ShaderCompilerCommon |
| Header |
/Engine/Source/Developer/ShaderCompilerCommon/Public/ShaderMinifier.h |
| Include |
#include "ShaderMinifier.h" |
Syntax
namespace UE
{
namespace ShaderMinifier
{
enum EMinifyShaderFlags
&123;
None = 0,
OutputReasons = 1 << 1,
OutputStats = 1 << 2,
OutputLines = 1 << 3,
OutputCommentLines = 1 << 4,
&125;
}
}
Values
| Name |
Description |
| 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 |