Navigation
API > API/Runtime > API/Runtime/RenderCore
| Name | TShaderPermutationDomain< TDimension, Ts... > |
| Type | struct |
| Header File | /Engine/Source/Runtime/RenderCore/Public/ShaderPermutation.h |
| Include Path | #include "ShaderPermutation.h" |
Syntax
template<typename TDimension, typename... Ts>
struct TShaderPermutationDomain< TDimension, Ts... >
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Super | TShaderPermutationDomain< Ts... > | Parent type in the variadic template to reduce code. | ShaderPermutation.h |
| 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. | ShaderPermutation.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| IsMultiDimensional | bool | Define a domain as a multidimensional dimension so that ModifyCompilationEnvironment() is used. | ShaderPermutation.h |
| PermutationCount | int32 | Total number of permutation within the domain. | ShaderPermutation.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DimensionValue | TDimension::Type | ShaderPermutation.h | ||
| Tail | Super | ShaderPermutation.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const DimensionToGet::Type & Get() |
Get dimension's value. | ShaderPermutation.h | |
const Super::Type & GetTail() |
Get the tail of the dimensions. | ShaderPermutation.h | |
void ModifyCompilationEnvironment
(
FShaderCompilerEnvironment& OutEnvironment |
Modify the shader's compilation environment. | ShaderPermutation.h | |
void Set
(
typename DimensionToSet::Type Value |
Set dimension's value. | ShaderPermutation.h | |
int32 ToDimensionValueId () |
ShaderPermutation.h | ||
| Constructors. | ShaderPermutation.h | ||
TShaderPermutationDomain
(
int32 PermutationId |
ShaderPermutation.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static Type FromDimensionValueId
(
const int32 PermutationId |
Returns the permutation domain from the unique ID. | ShaderPermutation.h | |
static int32 ToDimensionValueId
(
const Type& PermutationVector |
Converts domain permutation vector to domain's value id. | ShaderPermutation.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const Type& Other |
Test if not equal. | ShaderPermutation.h | |
bool operator==
(
const Type& Other |
Test if equal. | ShaderPermutation.h |