TShaderPermutationDomain< TDimension, Ts... >

Windows
MacOS
Linux

References

Module

RenderCore

Header

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

Include

#include "ShaderPermutation.h"

Syntax

template<typename TDimension, typename... Ts>
struct TShaderPermutationDomain< TDimension, Ts... >

Functions

Name Description

Public function Static

Type

 

FromDimensionValueId

(
    const int32 PermutationId
)

Returns the permutation domain from the unique ID.

Public function Const

const Dimens...

 

Get()

Get dimension's value.

Public function Const

void

 

ModifyCompilationEnvironment

(
    FShaderCompilerEnvironment& OutEnv...
)

Modify the shader's compilation environment.

Public function

void

 

Set

(
    typename DimensionToSet::Type Value
)

Set dimension's value.

Public function Const

int32

 

ToDimensionValueId()

Public function Static

int32

 

ToDimensionValueId

(
    const Type& PermutationVector
)

Converts domain permutation vector to domain's value id.

Public function

 

TShaderPermutationDomain()

Constructors.

Public function

 

TShaderPermutationDomain

(
    int32 PermutationId
)

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const Type& Other
)

Test if not equal.

Public function Const

bool

 

operator==

(
    const Type& Other
)

Test if equal.

Typedefs

Name

Description

Super

Parent type in the variadic template to reduce code.

Type

Setup the dimension's type in permutation domain as itself so that a permutation domain can be used as a dimension of another domain.

Constants

Name

Description

IsMultiDimensional

Define a domain as a multidimensional dimension so that ModifyCompilationEnvironment() is used.

PermutationCount

Total number of permutation within the domain.

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