Navigation
API > API/Plugins > API/Plugins/HairStrandsCore > API/Plugins/HairStrandsCore/Niagara
Inheritance Hierarchy
- FRenderResource
- FNDIHairStrandsBuffer
References
| Module | HairStrandsCore |
| Header | /Engine/Plugins/Runtime/HairStrands/Source/HairStrandsCore/Public/Niagara/NiagaraDataInterfaceHairStrands.h |
| Include | #include "Niagara/NiagaraDataInterfaceHairStrands.h" |
Syntax
struct FNDIHairStrandsBuffer : public FRenderResource
Remarks
Render buffers that will be used in hlsl functions
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bNeedResouces | True if the internal resources (BoundingBoxBuffer/ParamsScaleBuffer) needs to be built | |
| FNiagaraPooledRWBuffer | BoundingBoxBuffer | Bounding Box Buffer | |
| FIntVector4 | BoundingBoxOffsets | Bounding box offsets | |
| bool | bShouldReset | Boolean to trigger the reset | |
| bool | bValidGeometryType | Valid geometry type for hair (strands, cards, mesh) | |
| int32 | CurrentMeshLOD | Mesh LOD that is being used for the root resources | |
| TStaticArray< float, 32 *NumScales > | ParamsScale | Scales along the strand | |
| FNiagaraPooledRWBuffer | ParamsScaleBuffer | Params scale buffer | |
| int32 | ResetCount | Counter to reset the simulation once triggered |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Initialize
(
const FNDIHairStrandsInfo& In, |
Set the asset that will be used to affect the buffer | |
| void | Transfer
(
FRDGBuilder& GraphBuilder, |
Transfer CPU datas to GPU |
Overridden from FRenderResource
| Type | Name | Description | |
|---|---|---|---|
| FString | Get the resource name | ||
| void | InitRHI
(
FRHICommandListBase& RHICmdList |
Init the buffer | |
| void | ReleaseRHI () |
Release the buffer |