UE::ShaderMinifier::EMinifyShaderFlags

Unreal Engine C++ API Reference > Developer > ShaderCompilerCommon

References

   
Module ShaderCompilerCommon
Header /Engine/Source/Developer/ShaderCompilerCommon/Public/ShaderMinifier.h
Include #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 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

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library