UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FParticleCurveTexture Class Reference

#include <ParticleCurveTexture.h>

+ Inheritance diagram for FParticleCurveTexture:

Public Member Functions

 FParticleCurveTexture ()
 
virtual void InitRHI (FRHICommandListBase &RHICmdList) override
 
virtual void ReleaseRHI () override
 
FTexelAllocation AddCurve (const TArray< FColor > &CurveSamples)
 
void RemoveCurve (FTexelAllocation TexelAllocation)
 
FVector4f ComputeCurveScaleBias (FTexelAllocation TexelAllocation)
 
FRHITextureGetCurveTexture ()
 
void SubmitPendingCurves ()
 
- Public Member Functions inherited from FRenderResource
RENDERCORE_API FRenderResource ()
 
RENDERCORE_API FRenderResource (ERHIFeatureLevel::Type InFeatureLevel)
 
RENDERCORE_API FRenderResource (const FRenderResource &)
 
RENDERCORE_API FRenderResource (FRenderResource &&)
 
RENDERCORE_API FRenderResourceoperator= (const FRenderResource &Other)
 
RENDERCORE_API FRenderResourceoperator= (FRenderResource &&Other)
 
virtual RENDERCORE_API ~FRenderResource ()
 
virtual RENDERCORE_API void InitResource (FRHICommandListBase &RHICmdList)
 
virtual RENDERCORE_API void ReleaseResource ()
 
RENDERCORE_API void UpdateRHI (FRHICommandListBase &RHICmdList)
 
virtual FString GetFriendlyName () const
 
bool IsInitialized () const
 
int32 GetListIndex () const
 
EInitPhase GetInitPhase () const
 
void SetOwnerName (FName InOwnerName)
 
FName GetOwnerName () const
 
void SetResourceName (FName InResourceName)
 
FName GetResourceName () const
 

Additional Inherited Members

- Public Types inherited from FRenderResource
enum class  EInitPhase : uint8 { Pre , Default , MAX }
 
- 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)
 
- Public Attributes inherited from FRenderResource
ERenderResourceState ResourceState = ERenderResourceState::Default
 
- Protected Member Functions inherited from FRenderResource
void SetFeatureLevel (const FStaticFeatureLevel InFeatureLevel)
 
const FStaticFeatureLevel GetFeatureLevel () const
 
bool HasValidFeatureLevel () const
 
template<typename T >
FBufferRHIRef CreateRHIBuffer (FRHICommandListBase &RHICmdList, T &InOutResourceObject, uint32 ResourceCount, EBufferUsageFlags InBufferUsageFlags, const TCHAR *InDebugName)
 
void SetInitPhase (EInitPhase InInitPhase)
 
- Static Protected Member Functions inherited from FRenderResource
static RENDERCORE_API FRHICommandListBaseGetImmediateCommandList ()
 

Detailed Description

A texture in which to store curve samples.

Constructor & Destructor Documentation

◆ FParticleCurveTexture()

FParticleCurveTexture::FParticleCurveTexture ( )

Default constructor.

Member Function Documentation

◆ AddCurve()

FTexelAllocation FParticleCurveTexture::AddCurve ( const TArray< FColor > &  CurveSamples)

Adds a curve to the texture.

Parameters
CurveSamples- Samples in the curve.
Returns
The texel allocation in the curve texture.

◆ ComputeCurveScaleBias()

FVector4f FParticleCurveTexture::ComputeCurveScaleBias ( FTexelAllocation  TexelAllocation)

Computes scale and bias to apply in order to sample the curve. The value should be used as TexCoord.xy = Curve.xy + Curve.zw * t.

Parameters
TexelAllocation- The texel allocation in the texture.
Returns
the scale and bias needed to sample the curve.

◆ GetCurveTexture()

FRHITexture * FParticleCurveTexture::GetCurveTexture ( )
inline

Retrieves the curve texture from which shaders can sample.

◆ InitRHI()

void FParticleCurveTexture::InitRHI ( FRHICommandListBase RHICmdList)
overridevirtual

Initialize RHI resources for the curve texture.

Reimplemented from FRenderResource.

◆ ReleaseRHI()

void FParticleCurveTexture::ReleaseRHI ( )
overridevirtual

Releases RHI resources.

Reimplemented from FRenderResource.

◆ RemoveCurve()

void FParticleCurveTexture::RemoveCurve ( FTexelAllocation  TexelAllocation)

Frees an area in the texture associated with a curve.

Parameters
TexelAllocation- Frees a texel region allowing other curves to be placed there.

◆ SubmitPendingCurves()

void FParticleCurveTexture::SubmitPendingCurves ( )

Submits pending curves to the GPU.


The documentation for this class was generated from the following files: