FShaderConductorOptions

Wrapper structure to pass options descriptor to ShaderConductor.

Windows
MacOS
Linux

References

Module

ShaderCompilerCommon

Header

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

Include

#include "ShaderConductorContext.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

 

bDisableScalarBlockLayout

Disables scalar block layout for structured buffers.

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

 

bEnableSeparateSamplersInGlsl

Enables separate samplers in GLSL via extensions.

Public variable

bool

 

bForceSubpassImageDepthFalse

Force subpass OpTypeImage depth parameter to false as a work around for driver bugs

Public variable

bool

 

bPackMatricesInRowMajor

Experimental: Decide how a matrix get packed.

Public variable

bool

 

bPreserveStorageInput

Preserve storage inputs used for open gl

Public variable

bool

 

bRemapAttributeLocations

Enables re-mapping of input/output attribute locations to include padding for arrays.

Public variable

bool

 

bRemoveUnusedGlobals

Removes unused global variables and resources.

Public variable

FHlslShaderMode...

 

ShaderModel

Shader model version of the input language. By default SM6.2.

Public variable

ETargetEnvironm...

 

TargetEnvironment

Enums

Name

Description

Public enum

ETargetEnvironment