Navigation
API > API/Plugins > API/Plugins/NiagaraVertexFactories
Inheritance Hierarchy
- FRenderResource
- FVertexFactory
- FNiagaraVertexFactoryBase
- FNiagaraMeshVertexFactory
References
| Module | NiagaraVertexFactories |
| Header | /Engine/Plugins/FX/Niagara/Source/NiagaraVertexFactories/Public/NiagaraMeshVertexFactory.h |
| Include | #include "NiagaraMeshVertexFactory.h" |
Syntax
class FNiagaraMeshVertexFactory : public FNiagaraVertexFactoryBase
Remarks
Vertex factory for rendering instanced mesh particles with out dynamic parameter support.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAddPrimitiveIDElement | ||
| FStaticMeshDataType | Data | ||
| int32 | LODIndex | ||
| int32 | MeshIndex | ||
| FRHIUniformBuffer * | MeshParticleUniformBuffer | Uniform buffer with mesh particle parameters. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FNiagaraMeshVertexFactory
(
ENiagaraVertexFactoryType InType, |
Default constructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | EnablePrimitiveIDElement
(
bool bEnable |
||
| FRHIShaderResourceView * | |||
| uint32 | |||
| int32 | GetLODIndex () |
||
| int32 | GetMeshIndex () |
||
| int | |||
| void | GetPSOPrecacheVertexFetchElements
(
EVertexInputStreamType VertexInputStreamType, |
Get vertex elements used when during PSO precaching materials using this vertex factory type | |
| FRHIShaderResourceView * | |||
| FRHIShaderResourceView * | |||
| FRHIUniformBuffer * | Retrieve the uniform buffer for this vertex factory. | ||
| void | GetVertexElements
(
ERHIFeatureLevel::Type FeatureLevel, |
||
| void | GetVertexElements
(
ERHIFeatureLevel::Type FeatureLevel, |
||
| bool | |||
| void | ModifyCompilationEnvironment
(
const FVertexFactoryShaderPermutationParameters& Parameters, |
Modify compile environment to enable instancing | |
| void | SetData
(
const FStaticMeshDataType& InData |
An implementation of the interface used by TSynchronizedResource to update the resource with new data from the game thread. | |
| void | SetLODIndex
(
int32 InLODIndex |
||
| void | SetMeshIndex
(
int32 InMeshIndex |
||
| void | SetNiagaraMeshFeatureLevel
(
ERHIFeatureLevel::Type InFeatureLevel |
||
| void | SetUniformBuffer
(
const FNiagaraMeshUniformBufferRef& 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? |
Overridden from FVertexFactory
| Type | Name | Description | |
|---|---|---|---|
| NIAGARAVERTEXFACTORIES_API FVertexFactoryType * | GetType () |
Overridden from FRenderResource
| Type | Name | Description | |
|---|---|---|---|
| void | InitRHI
(
FRHICommandListBase& RHICmdList |
Initializes the RHI resources used by this resource. |
Constants
| Name | Description |
|---|---|
| StaticType |