![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ShaderPermutation.h>
Public Types | |
| using | Type = TShaderPermutationDomain< TDimension, Ts... > |
| using | Super = TShaderPermutationDomain< Ts... > |
Public Member Functions | |
| TShaderPermutationDomain () | |
| TShaderPermutationDomain (int32 PermutationId) | |
| template<class DimensionToSet > | |
| void | Set (typename DimensionToSet::Type Value) |
| template<class DimensionToGet > | |
| const DimensionToGet::Type & | Get () const |
| const Super::Type & | GetTail () const |
| void | ModifyCompilationEnvironment (FShaderCompilerEnvironment &OutEnvironment) const |
| int32 | ToDimensionValueId () const |
| bool | operator== (const Type &Other) const |
| bool | operator!= (const Type &Other) const |
Static Public Member Functions | |
| static int32 | ToDimensionValueId (const Type &PermutationVector) |
| static Type | FromDimensionValueId (const int32 PermutationId) |
Static Public Attributes | |
| static constexpr bool | IsMultiDimensional = true |
| static constexpr int32 | PermutationCount = Super::PermutationCount * TDimension::PermutationCount |
Friends | |
| template<bool BooleanSpecialization> | |
| class | TShaderPermutationDomainSpetialization |
| using TShaderPermutationDomain< TDimension, Ts... >::Super = TShaderPermutationDomain<Ts...> |
Parent type in the variadic template to reduce code.
| using TShaderPermutationDomain< TDimension, Ts... >::Type = TShaderPermutationDomain<TDimension, Ts...> |
Setup the dimension's type in permutation domain as itself so that a permutation domain can be used as a dimension of another domain.
|
inline |
Constructors.
|
inlineexplicit |
|
inlinestatic |
Returns the permutation domain from the unique ID.
|
inline |
Get dimension's value.
|
inline |
Get the tail of the dimensions.
|
inline |
Modify the shader's compilation environment.
|
inline |
Test if not equal.
|
inline |
Test if equal.
|
inline |
Set dimension's value.
|
inline |
|
inlinestatic |
Converts domain permutation vector to domain's value id.
|
friend |
|
staticconstexpr |
Define a domain as a multidimensional dimension so that ModifyCompilationEnvironment() is used.
|
staticconstexpr |
Total number of permutation within the domain.