![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ShaderPermutation.h>
Public Types | |
| using | Type = bool |
Static Public Member Functions | |
| static int32 | ToDimensionValueId (Type E) |
| static bool | ToDefineValue (Type E) |
| static Type | FromDimensionValueId (int32 PermutationId) |
Static Public Attributes | |
| static constexpr int32 | PermutationCount = 2 |
| static constexpr bool | IsMultiDimensional = false |
Defines at compile time a boolean permutation dimension.
| using FShaderPermutationBool::Type = bool |
Setup the dimension's type in permutation domain as boolean.
Converts dimension's value id to dimension boolean value (exact reciprocal of ToDimensionValueId).
Pass down a boolean to FShaderCompilerEnvironment::SetDefine().
Converts dimension boolean value to dimension's value id.
Setup the dimension as non multi-dimensional, so that the ModifyCompilationEnvironement's define can conventily be set up in SHADER_PERMUTATION_BOOL.
Setup the dimension's number of permutation.