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

A shader meta type for the simplest shaders; shaders which are not material or vertex factory linked. 更多...

#include <GlobalShader.h>

+ 类 FGlobalShaderType 继承关系图:

Public 成员函数

void SetupCompileEnvironment (EShaderPlatform Platform, int32 PermutationId, FShaderCompilerEnvironment &Environment)
 Sets up the environment used to compile an instance of this shader type. 更多...
 
bool ShouldCompilePermutation (EShaderPlatform Platform, int32 PermutationId) const
 Checks if the shader type should be cached for a particular platform. 更多...
 
- Public 成员函数 继承自 FShaderType
void AddReferencedUniformBufferIncludes (FShaderCompilerEnvironment &OutEnvironment, FString &OutSourceFilePrefix, EShaderPlatform Platform)
 Adds include statements for uniform buffers that this shader type references, and builds a prefix for the shader file with the include statements.
 
FShader * ConstructForDeserialization () const
 Constructs a new instance of the shader type for deserialization.
 
 FShaderType (EShaderTypeForDynamicCast InShaderTypeForDynamicCast, FTypeLayoutDesc &InTypeLayout, const TCHAR *InName, const TCHAR *InSourceFilename, const TCHAR *InFunctionName, uint32 InFrequency, int32 TotalPermutationCount, ConstructSerializedType InConstructSerializedRef, ConstructCompiledType InConstructCompiledRef, ModifyCompilationEnvironmentType InModifyCompilationEnvironmentRef, ShouldCompilePermutationType InShouldCompilePermutationRef, ValidateCompiledResultType InValidateCompiledResultRef, uint32 InTypeSize, const FShaderParametersMetadata *InRootParametersMetadata)
 Minimal initialization constructor.
 
const FShaderParametersMetadata * GetRootParametersMetadata () const
 Returns the meta data for the root shader parameter struct.
 
const FSHAHash & GetSourceHash (EShaderPlatform ShaderPlatform) const
 Calculates a Hash based on this shader type's source code and includes
 
bool ValidateCompiledResult (EShaderPlatform Platform, const FShaderParameterMap &ParameterMap, TArray< FString > &OutError) const
 Checks if the shader type should pass compilation for a particular set of parameters. 更多...
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 FShaderType
static TMap< FHashedName, FShaderType * > & GetNameToTypeMap ()
 
static TLinkedList< FShaderType * > *& GetTypeList ()
 
static void Initialize (const TMap< FString, TArray< const TCHAR * > > &ShaderFileToUniformBufferVariables)
 Initialize FShaderType static members, this must be called before any shader types are created.
 
static void Uninitialize ()
 Uninitializes FShaderType cached data.
 
- Protected 属性 继承自 FShaderType
bool bCachedUniformBufferStructDeclarations
 Tracks what platforms ReferencedUniformBufferStructsCache has had declarations cached for.
 
TMap< const TCHAR *, FCachedUniformBufferDeclaration > ReferencedUniformBufferStructsCache
 Cache of referenced uniform buffer includes. 更多...
 

详细描述

A shader meta type for the simplest shaders; shaders which are not material or vertex factory linked.

There should only a single instance of each simple shader type.

成员函数说明

◆ SetupCompileEnvironment()

void FGlobalShaderType::SetupCompileEnvironment ( EShaderPlatform  Platform,
int32  PermutationId,
FShaderCompilerEnvironment &  Environment 
)
inline

Sets up the environment used to compile an instance of this shader type.

参数
Platform- Platform to compile for.
Environment- The shader compile environment that the function modifies.

◆ ShouldCompilePermutation()

bool FGlobalShaderType::ShouldCompilePermutation ( EShaderPlatform  Platform,
int32  PermutationId 
) const
inline

Checks if the shader type should be cached for a particular platform.

参数
Platform- The platform to check.
返回
True if this shader type should be cached.

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