FShaderConductorOptions

Wrapper structure to pass options descriptor to ShaderConductor.

Windows
MacOS
Linux

References

Module

ShaderCompilerCommon

Header

/Engine/Source/Developer/ShaderCompilerCommon/Public/ShaderCompilerCommon.h

Include

#include "ShaderCompilerCommon.h"

Syntax

struct FShaderConductorOptions

Remarks

Wrapper structure to pass options descriptor to ShaderConductor. This is mapped to <struct ShaderConductor::Compiler::Options>.

Variables

Name Description

Public variable

bool

 

bDisableOptimizations

Force to turn off optimizations. Ignore optimizationLevel below.

Public variable

bool

 

bEnable16bitTypes

Enable 16-bit types, such as half, uint16_t. Requires shader model 6.2+.

Public variable

bool

 

bEnableDebugInfo

Embed debug info into the binary.

Public variable

bool

 

bEnableFMAPass

Enable a pass that converts floating point MUL+ADD pairs into FMAs to avoid re-association.

Public variable

bool

 

bGlobalsAsPushConstants

Cross compile global variables as push constants (for Vulkan backend).

Public variable

bool

 

bPackMatricesInRowMajor

Experimental: Decide how a matrix get packed.

Public variable

bool

 

bRemoveUnusedGlobals

Removes unused global variables and resources.

Public variable

EHlslCompileTar...

 

TargetProfile

Target shader profile. By default HCT_FeatureLevelSM5.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss