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

Encapsulates a vertex data source which can be linked into a vertex shader. 更多...

#include <VertexFactory.h>

+ 类 FVertexFactory 继承关系图:

类

struct  FVertexStream
 Information needed to set a vertex stream. 更多...
 

Public 成员函数

virtual void ReleaseRHI ()
 Releases the RHI resources used by this resource. 更多...
 
virtual bool SupportsNullPixelShader () const
 Indicates whether the vertex factory supports a null pixel shader.
 
virtual bool SupportsPositionAndNormalOnlyStream () const
 Indicates whether the vertex factory supports a position-and-normal-only stream.
 
virtual bool SupportsPositionOnlyStream () const
 Indicates whether the vertex factory supports a position-only stream.
 
- Public 成员函数 继承自 FRenderResource
 FRenderResource ()
 Default constructor.
 
 FRenderResource (ERHIFeatureLevel::Type InFeatureLevel)
 Constructor when we know what feature level this resource should support
 
virtual FString GetFriendlyName () const
 
virtual void InitDynamicRHI ()
 Initializes the dynamic RHI resource and/or RHI render target used by this resource. 更多...
 
virtual void InitResource ()
 Initializes the resource. 更多...
 
virtual void InitRHI ()
 Initializes the RHI resources used by this resource. 更多...
 
virtual void ReleaseDynamicRHI ()
 Releases the dynamic RHI resource and/or RHI render target resources used by this resource. 更多...
 
virtual void ReleaseResource ()
 Prepares the resource for deletion. 更多...
 
virtual void ReleaseRHI ()
 Releases the RHI resources used by this resource. 更多...
 
void UpdateRHI ()
 If the resource's RHI resources have been initialized, then release and reinitialize it. 更多...
 
virtual ~FRenderResource ()
 Destructor used to catch unreleased resources.
 

静态 Public 成员函数

static void ModifyCompilationEnvironment (const FVertexFactoryShaderPermutationParameters &Parameters, FShaderCompilerEnvironment &OutEnvironment)
 Can be overridden by FVertexFactory subclasses to modify their compile environment just before compilation occurs.
 
static bool SupportsTessellationShaders ()
 Can be overridden by FVertexFactory subclasses to enable HS/DS in D3D11
 
static void ValidateCompiledResult (const FVertexFactoryType *Type, EShaderPlatform Platform, const FShaderParameterMap &ParameterMap, TArray< FString > &OutErrors)
 Can be overridden by FVertexFactory subclasses to fail a compile based on compilation output.
 
- 静态 Public 成员函数 继承自 FRenderResource
static void InitPreRHIResources ()
 Initialize all resources initialized before the RHI was initialized
 

Protected 成员函数

FVertexElement AccessStreamComponent (const FVertexStreamComponent &Component, uint8 AttributeIndex)
 Creates a vertex element for a vertex stream components. 更多...
 
FVertexElement AccessStreamComponent (const FVertexStreamComponent &Component, uint8 AttributeIndex, EVertexInputStreamType InputStreamType)
 Creates a vertex element for a vertex stream component. 更多...
 
void InitDeclaration (const FVertexDeclarationElementList &Elements, EVertexInputStreamType StreamType=EVertexInputStreamType::Default)
 Initializes the vertex declaration. 更多...
 

Protected 属性

TArray< FVertexStream, TInlineAllocator< 8 > > Streams
 The vertex streams used to render the factory.
 

详细描述

Encapsulates a vertex data source which can be linked into a vertex shader.

成员函数说明

◆ AccessStreamComponent() [1/2]

FVertexElement FVertexFactory::AccessStreamComponent ( const FVertexStreamComponent &  Component,
uint8  AttributeIndex 
)
protected

Creates a vertex element for a vertex stream components.

Adds a unique stream index for the vertex buffer used by the component.

参数
Component- The vertex stream component.
AttributeIndex- The attribute index to which the stream component is bound.
返回
The vertex element which corresponds to Component.

◆ AccessStreamComponent() [2/2]

FVertexElement FVertexFactory::AccessStreamComponent ( const FVertexStreamComponent &  Component,
uint8  AttributeIndex,
EVertexInputStreamType  InputStreamType 
)
protected

Creates a vertex element for a vertex stream component.

Adds a unique position stream index for the vertex buffer used by the component.

参数
Component- The vertex stream component.
Usage- The vertex element usage semantics.
AttributeIndex- The attribute index to which the stream component is bound.
返回
The vertex element which corresponds to Component.

◆ InitDeclaration()

void FVertexFactory::InitDeclaration ( const FVertexDeclarationElementList &  Elements,
EVertexInputStreamType  StreamType = EVertexInputStreamType::Default 
)
protected

Initializes the vertex declaration.

参数
Elements- The elements of the vertex declaration.

◆ ReleaseRHI()

virtual void FVertexFactory::ReleaseRHI ( )
virtual

Releases the RHI resources used by this resource.

Called when leaving the state where both the resource and the RHI have been initialized. This is only called by the rendering thread.

重载 FRenderResource .

被 FGPUSkinPassthroughVertexFactory , 以及 FLocalVertexFactory 重载.


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