Vertex factory for rendering instanced mesh particles with out dynamic parameter support.
更多...
|
| void | Copy (const FMeshParticleVertexFactory &Other) |
| | Copy the data from another vertex factory 更多...
|
| |
|
| FMeshParticleVertexFactory (EParticleVertexFactoryType InType, ERHIFeatureLevel::Type InFeatureLevel, int32 InDynamicVertexStride, int32 InDynamicParameterVertexStride) |
| | Default constructor.
|
| |
|
FORCEINLINE FRHIUniformBuffer * | GetUniformBuffer () |
| | Retrieve the uniform buffer for this vertex factory.
|
| |
| virtual void | InitRHI () override |
| | Initializes the RHI resources used by this resource. 更多...
|
| |
|
void | SetData (const FDataType &InData) |
| | An implementation of the interface used by TSynchronizedResource to update the resource with new data from the game thread.
|
| |
|
void | SetDynamicParameterBuffer (const FVertexBuffer *InDynamicParameterBuffer, uint32 StreamOffset, uint32 Stride) |
| | Set the source vertex buffer that contains particle dynamic parameter data.
|
| |
|
void | SetInstanceBuffer (const FVertexBuffer *InstanceBuffer, uint32 StreamOffset, uint32 Stride) |
| | Set the source vertex buffer that contains particle instance data.
|
| |
|
void | SetStrides (int32 InDynamicVertexStride, int32 InDynamicParameterVertexStride) |
| | Update the data strides (MUST HAPPEN BEFORE InitRHI is called)
|
| |
|
FORCEINLINE void | SetUniformBuffer (const FMeshParticleUniformBufferRef &InMeshParticleUniformBuffer) |
| | Set the uniform buffer for this vertex factory.
|
| |
Public 成员函数 继承自 FParticleVertexFactoryBase |
|
| FParticleVertexFactoryBase (EParticleVertexFactoryType Type, ERHIFeatureLevel::Type InFeatureLevel) |
| | Default constructor.
|
| |
|
FORCEINLINE bool | GetInUse () const |
| | Return the vertex factory type
|
| |
|
FORCEINLINE EParticleVertexFactoryType | GetParticleFactoryType () const |
| | Return the vertex factory type
|
| |
|
FORCEINLINE void | SetInUse (bool bInInUse) |
| | Specify whether the factory is in use or not.
|
| |
| 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.
|
| |
|
| 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.
|
| |
|
| static void | ModifyCompilationEnvironment (const FVertexFactoryShaderPermutationParameters &Parameters, FShaderCompilerEnvironment &OutEnvironment) |
| | Modify compile environment to enable instancing 更多...
|
| |
|
static bool | ShouldCompilePermutation (const FVertexFactoryShaderPermutationParameters &Parameters) |
| | Should we cache the material's shadertype on this platform with this vertex factory?
|
| |
|
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.
|
| |
|
static void | InitPreRHIResources () |
| | Initialize all resources initialized before the RHI was initialized
|
| |
Vertex factory for rendering instanced mesh particles with out dynamic parameter support.