![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ShaderPermutation.h>
Public Types | |
| using | Type = TType |
Static Public Member Functions | |
| static int32 | ToDimensionValueId (Type E) |
| static int32 | ToDefineValue (Type E) |
| static Type | FromDimensionValueId (int32 PermutationId) |
Static Public Attributes | |
| static constexpr int32 | PermutationCount = TDimensionSize |
| static constexpr bool | IsMultiDimensional = false |
| static constexpr Type | MinValue = static_cast<Type>(TFirstValue) |
| static constexpr Type | MaxValue = static_cast<Type>(TFirstValue + TDimensionSize - 1) |
Defines at compile time a permutation dimension made of int32 from 0 to N -1.
| using TShaderPermutationInt< TType, TDimensionSize, TFirstValue >::Type = TType |
Setup the dimension's type in permutation domain as integer.
|
inlinestatic |
Converts dimension's value id to dimension's integer value (exact reciprocal of ToDimensionValueId).
|
inlinestatic |
Pass down a int32 to FShaderCompilerEnvironment::SetDefine() even for contiguous enum classes.
|
inlinestatic |
Converts dimension's integer value to dimension's value id.
|
staticconstexpr |
Setup the dimension as non multi-dimensional, so that the ModifyCompilationEnvironement's define can conventily be set up in SHADER_PERMUTATION_INT.
|
staticconstexpr |
|
staticconstexpr |
Min and max values.
|
staticconstexpr |
Setup the dimension's number of permutation.