TShaderPermutationInt::ToDefineValue

Pass down a int32 to [FShaderCompilerEnvironment::SetDefine()](API\Runtime\RenderCore\FShaderCompilerEnvironment\SetDefine\1) even for contiguous enum classes.

Windows
MacOS
Linux

References

Module

RenderCore

Header

/Engine/Source/Runtime/RenderCore/Public/ShaderPermutation.h

Include

#include "ShaderPermutation.h"

Syntax

static int32 ToDefineValue
(
    Type E
)

Remarks

Pass down a int32 to FShaderCompilerEnvironment::SetDefine() even for contiguous enum classes.

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