Navigation
API > API/Runtime > API/Runtime/Engine
Inheritance Hierarchy
- FRenderResource
- FVertexFactory
- FParticleVertexFactoryBase
- FMeshParticleVertexFactory
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/MeshParticleVertexFactory.h |
| Include | #include "MeshParticleVertexFactory.h" |
Syntax
class FMeshParticleVertexFactory : public FParticleVertexFactoryBase
Remarks
Vertex factory for rendering instanced mesh particles with out dynamic parameter support.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FDataType | Data | ||
| int32 | DynamicParameterVertexStride | ||
| int32 | DynamicVertexStride | Stride information for instanced mesh particles | |
| FMeshParticleInstanceVertices * | InstanceVerticesCPU | Used to remember this in the case that we reuse the same vertex factory for multiple renders . | |
| uint8 | LODIdx | ||
| FRHIUniformBuffer * | MeshParticleUniformBuffer | Uniform buffer with mesh particle parameters. | |
| FDynamicReadBuffer | PrevTransformBuffer |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FMeshParticleVertexFactory
(
ERHIFeatureLevel::Type InFeatureLevel |
|||
FMeshParticleVertexFactory
(
EParticleVertexFactoryType InType, |
Default constructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Copy
(
const FMeshParticleVertexFactory& Other |
Copy the data from another vertex factory | |
| FMeshParticleInstanceVertices *& | |||
| uint8 | GetLODIdx () |
||
| FRHIShaderResourceView * | |||
| void | GetPSOPrecacheVertexFetchElements
(
EVertexInputStreamType VertexInputStreamType, |
Get vertex elements used when during PSO precaching materials using this vertex factory type | |
| FRHIUniformBuffer * | Retrieve the uniform buffer for this vertex factory. | ||
| void | GetVertexElements
(
ERHIFeatureLevel::Type FeatureLevel, |
||
| void | GetVertexElements
(
ERHIFeatureLevel::Type FeatureLevel, |
||
| uint8 * | LockPreviousTransformBuffer
(
FRHICommandListBase& RHICmdList, |
||
| void | ModifyCompilationEnvironment
(
const FVertexFactoryShaderPermutationParameters& Parameters, |
Modify compile environment to enable instancing | |
| void | SetData
(
FRHICommandListBase& RHICmdList, |
An implementation of the interface used by TSynchronizedResource to update the resource with new data from the game thread. | |
| void | |||
| void | SetDynamicParameterBuffer
(
const FVertexBuffer* InDynamicParameterBuffer, |
Set the source vertex buffer that contains particle dynamic parameter data. | |
| void | SetInstanceBuffer
(
const FVertexBuffer* InstanceBuffer, |
Set the source vertex buffer that contains particle instance data. | |
| void | |||
| void | SetStrides
(
int32 InDynamicVertexStride, |
Update the data strides (MUST HAPPEN BEFORE InitRHI is called) | |
| void | SetUniformBuffer
(
const FMeshParticleUniformBufferRef& InMeshParticleUniformBuffer |
Set the uniform buffer for this vertex factory. | |
| bool | ShouldCompilePermutation
(
const FVertexFactoryShaderPermutationParameters& Parameters |
Should we cache the material's shadertype on this platform with this vertex factory? | |
| void | UnlockPreviousTransformBuffer
(
FRHICommandListBase& RHICmdList |
Overridden from FVertexFactory
| Type | Name | Description | |
|---|---|---|---|
| FVertexFactoryType * | GetType () |
Overridden from FRenderResource
| Type | Name | Description | |
|---|---|---|---|
| void | InitRHI
(
FRHICommandListBase& RHICmdList |
Initializes the RHI resources used by this resource. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FBatchParametersCPU | |||
| FDataType |
Constants
| Name | Description |
|---|---|
| StaticType |