Navigation
API > API/Runtime > API/Runtime/Engine
Vertex factory for rendering instanced mesh particles with out dynamic parameter support.
| Name | FMeshParticleVertexFactory |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/MeshParticleVertexFactory.h |
| Include Path | #include "MeshParticleVertexFactory.h" |
Syntax
class FMeshParticleVertexFactory : public FParticleVertexFactoryBase
Inheritance Hierarchy
- FRenderResource → FVertexFactory → FParticleVertexFactoryBase → FMeshParticleVertexFactory
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMeshParticleVertexFactory
(
EParticleVertexFactoryType InType, |
Default constructor. | MeshParticleVertexFactory.h | |
FMeshParticleVertexFactory
(
ERHIFeatureLevel::Type InFeatureLevel |
MeshParticleVertexFactory.h | ||
| MeshParticleVertexFactory.h |
Classes
| Name | Remarks |
|---|---|
| FBatchParametersCPU |
Structs
| Name | Remarks |
|---|---|
| FDataType |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| StaticType | FVertexFactoryType | MeshParticleVertexFactory.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Copy
(
const FMeshParticleVertexFactory& Other |
Copy the data from another vertex factory | MeshParticleVertexFactory.h | |
FMeshParticleInstanceVertices *& GetInstanceVerticesCPU() |
MeshParticleVertexFactory.h | ||
uint8 GetLODIdx() |
MeshParticleVertexFactory.h | ||
FRHIShaderResourceView * GetPreviousTransformBufferSRV() |
MeshParticleVertexFactory.h | ||
FRHIUniformBuffer * GetUniformBuffer() |
Retrieve the uniform buffer for this vertex factory. | MeshParticleVertexFactory.h | |
uint8 * LockPreviousTransformBuffer
(
FRHICommandListBase& RHICmdList, |
MeshParticleVertexFactory.h | ||
void SetData
(
FRHICommandListBase& RHICmdList, |
An implementation of the interface used by TSynchronizedResource to update the resource with new data from the game thread. | MeshParticleVertexFactory.h | |
| MeshParticleVertexFactory.h | |||
void SetDynamicParameterBuffer
(
const FVertexBuffer* InDynamicParameterBuffer, |
Set the source vertex buffer that contains particle dynamic parameter data. | MeshParticleVertexFactory.h | |
void SetInstanceBuffer
(
const FVertexBuffer* InstanceBuffer, |
Set the source vertex buffer that contains particle instance data. | MeshParticleVertexFactory.h | |
void SetLODIdx
(
uint8 InLODIdx |
MeshParticleVertexFactory.h | ||
void SetStrides
(
int32 InDynamicVertexStride, |
Update the data strides (MUST HAPPEN BEFORE InitRHI is called) | MeshParticleVertexFactory.h | |
void SetUniformBuffer
(
const FMeshParticleUniformBufferRef& InMeshParticleUniformBuffer |
Set the uniform buffer for this vertex factory. | MeshParticleVertexFactory.h | |
void UnlockPreviousTransformBuffer
(
FRHICommandListBase& RHICmdList |
MeshParticleVertexFactory.h |
Overridden from FVertexFactory
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FVertexFactoryType * GetType() |
MeshParticleVertexFactory.h |
Overridden from FRenderResource
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void InitRHI
(
FRHICommandListBase& RHICmdList |
MeshParticleVertexFactory.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void GetPSOPrecacheVertexFetchElements
(
EVertexInputStreamType VertexInputStreamType, |
Get vertex elements used when during PSO precaching materials using this vertex factory type | MeshParticleVertexFactory.h | |
static void GetVertexElements
(
ERHIFeatureLevel::Type FeatureLevel, |
MeshParticleVertexFactory.h | ||
static void GetVertexElements
(
ERHIFeatureLevel::Type FeatureLevel, |
MeshParticleVertexFactory.h | ||
static void ModifyCompilationEnvironment
(
const FVertexFactoryShaderPermutationParameters& Parameters, |
Modify compile environment to enable instancing | MeshParticleVertexFactory.h | |
static bool ShouldCompilePermutation
(
const FVertexFactoryShaderPermutationParameters& Parameters |
Should we cache the material's shadertype on this platform with this vertex factory? | MeshParticleVertexFactory.h |