engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | 所有成员列表
FShaderMapContent类 参考

A collection of shaders of different types 更多...

#include <Shader.h>

+ 类 FShaderMapContent 继承关系图:

Public 成员函数

void Empty ()
 clears out all shaders and deletes shader pipelines held in the map
 
 FShaderMapContent (EShaderPlatform InPlatform)
 Default constructor.
 
uint32 GetNumShaderPipelines () const
 
uint32 GetNumShaders () const
 
FShader * GetShader (const FHashedName &TypeName, int32 PermutationId=0) const
 Finds the shader with the given type name. 更多...
 
template<typename ShaderType >
ShaderType * GetShader (const typename ShaderType::FPermutationDomain &PermutationVector) const
 Finds the shader with the given type. 更多...
 
FShader * GetShader (FShaderType *ShaderType, int32 PermutationId=0) const
 Finds the shader with the given type. 更多...
 
template<typename ShaderType >
ShaderType * GetShader (int32 PermutationId=0) const
 Finds the shader with the given type. 更多...
 
void GetShaderList (const FShaderMapBase &InShaderMap, const FSHAHash &InMaterialShaderMapHash, TMap< FShaderId, TShaderRef< FShader > > &OutShaders) const
 Builds a list of the shaders in a shader map.
 
void GetShaderList (const FShaderMapBase &InShaderMap, TMap< FHashedName, TShaderRef< FShader > > &OutShaders) const
 Builds a list of the shaders in a shader map. 更多...
 
void GetShaderPipelineList (const FShaderMapBase &InShaderMap, TArray< FShaderPipelineRef > &OutShaderPipelines, FShaderPipeline::EFilter Filter) const
 Builds a list of the shader pipelines in a shader map.
 
bool HasShader (const FHashedName &TypeName, int32 PermutationId) const
 Finds the shader with the given type.
 
bool IsEmpty () const
 
void RemoveShaderTypePermutaion (const FHashedName &TypeName, int32 PermutationId)
 Removes the shader of the given type from the shader map 更多...
 
 ~FShaderMapContent ()
 Destructor ensures pipelines cleared up.
 

Protected 成员函数

 LAYOUT_FIELD (TEnumAsByte< EShaderPlatform >, Platform)
 The platform this shader map was compiled with
 

详细描述

A collection of shaders of different types

成员函数说明

◆ GetNumShaderPipelines()

uint32 FShaderMapContent::GetNumShaderPipelines ( ) const
inline
返回
The number of shader pipelines in the map.

◆ GetNumShaders()

uint32 FShaderMapContent::GetNumShaders ( ) const
返回
The number of shaders in the map.

◆ GetShader() [1/4]

FShader * FShaderMapContent::GetShader ( const FHashedName &  TypeName,
int32  PermutationId = 0 
) const

Finds the shader with the given type name.

May return NULL.

◆ GetShader() [2/4]

template<typename ShaderType >
ShaderType * FShaderMapContent::GetShader ( const typename ShaderType::FPermutationDomain &  PermutationVector) const
inline

Finds the shader with the given type.

Asserts on failure.

◆ GetShader() [3/4]

FShader * FShaderMapContent::GetShader ( FShaderType *  ShaderType,
int32  PermutationId = 0 
) const
inline

Finds the shader with the given type.

May return NULL.

◆ GetShader() [4/4]

template<typename ShaderType >
ShaderType * FShaderMapContent::GetShader ( int32  PermutationId = 0) const
inline

Finds the shader with the given type.

Asserts on failure.

◆ GetShaderList()

void FShaderMapContent::GetShaderList ( const FShaderMapBase &  InShaderMap,
TMap< FHashedName, TShaderRef< FShader > > &  OutShaders 
) const

Builds a list of the shaders in a shader map.

Key is FShaderType::TypeName

◆ IsEmpty()

bool FShaderMapContent::IsEmpty ( ) const
inline
返回
true if the map is empty

◆ RemoveShaderTypePermutaion()

void FShaderMapContent::RemoveShaderTypePermutaion ( const FHashedName &  TypeName,
int32  PermutationId 
)

Removes the shader of the given type from the shader map

参数
TypeShader type to remove the entry for

该类的文档由以下文件生成: