![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <VertexFactory.h>
Inheritance diagram for FVertexFactory:Classes | |
| struct | FVertexStream |
Static Public Member Functions | |
| static void | ModifyCompilationEnvironment (const FVertexFactoryShaderPermutationParameters &Parameters, FShaderCompilerEnvironment &OutEnvironment) |
| static void | ValidateCompiledResult (const FVertexFactoryType *Type, EShaderPlatform Platform, const FShaderParameterMap &ParameterMap, TArray< FString > &OutErrors) |
| static void | GetPSOPrecacheVertexFetchElements (EVertexInputStreamType VertexInputStreamType, FVertexDeclarationElementList &Elements) |
Static Public Member Functions inherited from FRenderResource | |
| static RENDERCORE_API void | ReleaseRHIForAllResources () |
| static RENDERCORE_API void | InitPreRHIResources () |
| static RENDERCORE_API void | ChangeFeatureLevel (ERHIFeatureLevel::Type NewFeatureLevel) |
| static RENDERCORE_API FName | SetScopeName (FName Name) |
Protected Types | |
| typedef TArray< FVertexStream, TInlineAllocator< 8 > > | FVertexStreamList |
Static Protected Member Functions | |
| template<typename VertexStreamListType > | |
| static FVertexElement | AccessStreamComponent (const FVertexStreamComponent &Component, uint8 AttributeIndex, VertexStreamListType &InOutStreams) |
Static Protected Member Functions inherited from FRenderResource | |
| static RENDERCORE_API FRHICommandListBase & | GetImmediateCommandList () |
Protected Attributes | |
| FVertexStreamList | Streams |
| bool | bNeedsDeclaration = true |
Additional Inherited Members | |
Public Types inherited from FRenderResource | |
| enum class | EInitPhase : uint8 { Pre , Default , MAX } |
Public Attributes inherited from FRenderResource | |
| ERenderResourceState | ResourceState = ERenderResourceState::Default |
Encapsulates a vertex data source which can be linked into a vertex shader.
|
protected |
|
inline |
|
virtualdefault |
|
inlineprotected |
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. |
|
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. |
|
inlinestaticprotected |
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. |
| AttributeIndex | - Stream array where to add the new streams. |
|
protected |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Can be overridden by FVertexFactory subclasses which have EVertexFactoryFlags::SupportsPSOPrecaching set - this function will only be called when that flag is set
| void FVertexFactory::GetStreams | ( | ERHIFeatureLevel::Type | InFeatureLevel, |
| EVertexInputStreamType | VertexStreamType, | ||
| FVertexInputStreamArray & | OutVertexStreams | ||
| ) | const |
|
inlinevirtual |
Reimplemented in FGPUBaseSkinVertexFactory, and FLocalVertexFactory.
|
inlinevirtual |
|
protected |
Initializes the vertex declaration.
| Elements | - The elements of the vertex declaration. |
|
inlinestatic |
Can be overridden by FVertexFactory subclasses to modify their compile environment just before compilation occurs.
|
inline |
| void FVertexFactory::OffsetInstanceStreams | ( | uint32 | InstanceOffset, |
| EVertexInputStreamType | VertexStreamType, | ||
| FVertexInputStreamArray & | VertexStreams | ||
| ) | const |
|
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.
Reimplemented from FRenderResource.
Reimplemented in FGeometryCollectionVertexFactory, FGPUBaseSkinVertexFactory, TGPUSkinVertexFactory< BoneInfluenceType >, TGPUSkinAPEXClothVertexFactory< BoneInfluenceType >, and FLocalVertexFactory.
Reimplemented in FGPUSpriteVertexFactory, and FParticleSpriteVertexFactory.
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
Indicates whether the vertex factory supports a null pixel shader.
Indicates whether the vertex factory supports a position-and-normal-only stream.
Reimplemented in FGPUSkinPassthroughVertexFactory.
Indicates whether the vertex factory supports a position-only stream.
Reimplemented in FGPUSkinPassthroughVertexFactory.
|
inline |
|
inlinestatic |
Can be overridden by FVertexFactory subclasses to fail a compile based on compilation output.
|
protected |
The vertex streams used to render the factory.