FShaderConductorOptions

Wrapper structure to pass options descriptor to ShaderConductor.

Unreal Engine C++ API Reference > Developer > ShaderCompilerCommon

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 .

Variables

Type Name Description
bool bDisableOptimizations Force to turn off optimizations. Ignore optimizationLevel below.
bool bDisableScalarBlockLayout Disables scalar block layout for structured buffers.
bool bEnable16bitTypes Enable 16-bit types, such as half, uint16_t. Requires shader model 6.2+.
bool bEnableDebugInfo Embed debug info into the binary.
bool bEnableFMAPass Enable a pass that converts floating point MUL+ADD pairs into FMAs to avoid re-association.
bool bEnableSeparateSamplersInGlsl Enables separate samplers in GLSL via extensions.
bool bForceStorageImageFormat  
bool bPackMatricesInRowMajor Experimental: Decide how a matrix get packed.
bool bPreserveStorageInput Preserve storage inputs used for OpenGL
bool bRemapAttributeLocations Enables re-mapping of input/output attribute locations to include padding for arrays.
bool bRemoveUnusedGlobals Removes unused global variables and resources.
bool bSvPositionImplicitInvariant Decorate SV_Position implicitly as invariant.
uint32 HlslVersion HLSL language input version: 2015, 2016, 2017, 2018 (Default), 2021 (Breaking changes in short-circuiting evaluation).
FHlslShaderMode... ShaderModel Shader model version of the input language. By default SM6.2.
ETargetEnvironm... TargetEnvironment  

Enums

Type Name Description
Public enum ETargetEnvironment  

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library