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

The shaders which the render the material on a mesh generated by a particular vertex factory type. 更多...

#include <MaterialShared.h>

+ 类 FMeshMaterialShaderMap 继承关系图:

Public 成员函数

uint32 BeginCompile (uint32 ShaderMapId, const FMaterialShaderMapId &InShaderMapId, const FMaterial *Material, const FMeshMaterialShaderMapLayout &MeshLayout, FShaderCompilerEnvironment *MaterialEnvironment, EShaderPlatform Platform, TArray< TSharedRef< FShaderCommonCompileJob, ESPMode::ThreadSafe > > &NewJobs, FString DebugDescription, FString DebugExtension)
 Enqueues compilation for all shaders for a material and vertex factory type. 更多...
 
void FlushShadersByShaderPipelineType (const FShaderPipelineType *ShaderPipelineType)
 Removes all entries in the cache with exceptions based on a shader type 更多...
 
void FlushShadersByShaderType (const FShaderType *ShaderType)
 Removes all entries in the cache with exceptions based on a shader type 更多...
 
- Public 成员函数 继承自 FShaderMapContent
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 成员函数 继承自 FShaderMapContent
 LAYOUT_FIELD (TEnumAsByte< EShaderPlatform >, Platform)
 The platform this shader map was compiled with
 

详细描述

The shaders which the render the material on a mesh generated by a particular vertex factory type.

成员函数说明

◆ BeginCompile()

uint32 FMeshMaterialShaderMap::BeginCompile ( uint32  ShaderMapId,
const FMaterialShaderMapId &  InShaderMapId,
const FMaterial *  Material,
const FMeshMaterialShaderMapLayout &  MeshLayout,
FShaderCompilerEnvironment *  MaterialEnvironment,
EShaderPlatform  Platform,
TArray< TSharedRef< FShaderCommonCompileJob, ESPMode::ThreadSafe > > &  NewJobs,
FString  DebugDescription,
FString  DebugExtension 
)

Enqueues compilation for all shaders for a material and vertex factory type.

参数
Material- The material to compile shaders for.
VertexFactoryType- The vertex factory type to compile shaders for.
Platform- The platform to compile for.

◆ FlushShadersByShaderPipelineType()

void FMeshMaterialShaderMap::FlushShadersByShaderPipelineType ( const FShaderPipelineType *  ShaderPipelineType)

Removes all entries in the cache with exceptions based on a shader type

参数
ShaderType- The shader type to flush

◆ FlushShadersByShaderType()

void FMeshMaterialShaderMap::FlushShadersByShaderType ( const FShaderType *  ShaderType)

Removes all entries in the cache with exceptions based on a shader type

参数
ShaderType- The shader type to flush

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