engine
 
载入中...
搜索中...
未找到
Public 类型 | 静态 Public 成员函数 | 静态 Public 属性 | 所有成员列表
TShaderPermutationInt< TType, TDimensionSize, TFirstValue > 模板结构体 参考

Defines at compile time a permutation dimension made of int32 from 0 to N -1. 更多...

#include <ShaderPermutation.h>

Public 类型

using Type = TType
 Setup the dimension's type in permutation domain as integer.
 

静态 Public 成员函数

static Type FromDimensionValueId (int32 PermutationId)
 Converts dimension's value id to dimension's integer value (exact reciprocal of ToDimensionValueId).
 
static int32 ToDefineValue (Type E)
 Pass down a int32 to FShaderCompilerEnvironment::SetDefine() even for contiguous enum classes.
 
static int32 ToDimensionValueId (Type E)
 Converts dimension's integer value to dimension's value id.
 

静态 Public 属性

static constexpr bool IsMultiDimensional = false
 Setup the dimension as non multi-dimensional, so that the ModifyCompilationEnvironement's define can conventily be set up in SHADER_PERMUTATION_INT.
 
static constexpr Type MinValue = static_cast<Type>(TFirstValue)
 Min and max values.
 
static constexpr int32 PermutationCount = TDimensionSize
 Setup the dimension's number of permutation.
 

详细描述

template<typename TType, int32 TDimensionSize, int32 TFirstValue = 0>
struct TShaderPermutationInt< TType, TDimensionSize, TFirstValue >

Defines at compile time a permutation dimension made of int32 from 0 to N -1.


该结构体的文档由以下文件生成: