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

An object used to represent the type of a vertex factory. 更多...

#include <VertexFactory.h>

Public 成员函数

RENDERCORE_API 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.
 
RENDERCORE_API FVertexFactoryType (const TCHAR *InName, const TCHAR *InShaderFilename, bool bInUsedWithMaterials, bool bInSupportsStaticLighting, bool bInSupportsDynamicLighting, bool bInSupportsPrecisePrevWorldPos, bool bInSupportsPositionOnly, bool bInSupportsCachingMeshDrawCommands, bool bInSupportsPrimitiveIdStream, ConstructParametersType InConstructParameters, GetParameterTypeLayoutType InGetParameterTypeLayout, GetParameterTypeElementShaderBindingsType InGetParameterTypeElementShaderBindings, ShouldCacheType InShouldCache, ModifyCompilationEnvironmentType InModifyCompilationEnvironment, ValidateCompiledResultType InValidateCompiledResult, SupportsTessellationShadersType InSupportsTessellationShaders)
 Minimal initialization constructor. 更多...
 
RENDERCORE_API const FSHAHash & GetSourceHash (EShaderPlatform ShaderPlatform) const
 Calculates a Hash based on this vertex factory type's source code and includes
 
void ModifyCompilationEnvironment (const FVertexFactoryShaderPermutationParameters &Parameters, FShaderCompilerEnvironment &OutEnvironment)
 Calls the function ptr for the shader type on the given environment 更多...
 
bool ShouldCache (const FVertexFactoryShaderPermutationParameters &Parameters) const
 Should we cache the material's shadertype on this platform with this vertex factory?
 
bool SupportsTessellationShaders () const
 Does this vertex factory support tessellation shaders?
 

静态 Public 成员函数

static RENDERCORE_API TLinkedList< FVertexFactoryType * > *& GetTypeList ()
 
static RENDERCORE_API FVertexFactoryType * GetVFByName (const FHashedName &VFName)
 Finds a FVertexFactoryType by name.
 
static void Initialize (const TMap< FString, TArray< const TCHAR * > > &ShaderFileToUniformBufferVariables)
 Initialize FVertexFactoryType static members, this must be called before any VF types are created.
 
static void Uninitialize ()
 Uninitializes FVertexFactoryType cached data.
 

详细描述

An object used to represent the type of a vertex factory.

构造及析构函数说明

◆ FVertexFactoryType()

RENDERCORE_API FVertexFactoryType::FVertexFactoryType ( const TCHAR *  InName,
const TCHAR *  InShaderFilename,
bool  bInUsedWithMaterials,
bool  bInSupportsStaticLighting,
bool  bInSupportsDynamicLighting,
bool  bInSupportsPrecisePrevWorldPos,
bool  bInSupportsPositionOnly,
bool  bInSupportsCachingMeshDrawCommands,
bool  bInSupportsPrimitiveIdStream,
ConstructParametersType  InConstructParameters,
GetParameterTypeLayoutType  InGetParameterTypeLayout,
GetParameterTypeElementShaderBindingsType  InGetParameterTypeElementShaderBindings,
ShouldCacheType  InShouldCache,
ModifyCompilationEnvironmentType  InModifyCompilationEnvironment,
ValidateCompiledResultType  InValidateCompiledResult,
SupportsTessellationShadersType  InSupportsTessellationShaders 
)

Minimal initialization constructor.

参数
bInUsedWithMaterials- True if the vertex factory will be rendered in combination with a material.
bInSupportsStaticLighting- True if the vertex factory will be rendered with static lighting.

成员函数说明

◆ GetTypeList()

static RENDERCORE_API TLinkedList< FVertexFactoryType * > *& FVertexFactoryType::GetTypeList ( )
static
返回
The global shader factory list.

◆ ModifyCompilationEnvironment()

void FVertexFactoryType::ModifyCompilationEnvironment ( const FVertexFactoryShaderPermutationParameters &  Parameters,
FShaderCompilerEnvironment &  OutEnvironment 
)
inline

Calls the function ptr for the shader type on the given environment

参数
Environment- shader compile environment to modify

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