Navigation
API > API/Plugins > API/Plugins/HairStrandsCore
Inheritance Hierarchy
- FRenderResource
- FHairCommonResource
- FHairStrandsLODDeformedRootResource
References
| Module | HairStrandsCore |
| Header | /Engine/Plugins/Runtime/HairStrands/Source/HairStrandsCore/Public/GroomResources.h |
| Include | #include "GroomResources.h" |
Syntax
struct FHairStrandsLODDeformedRootResource : public FHairCommonResource
Remarks
Render buffers for root deformation for dynamic meshes
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32 | AvailableCurveCount | ||
| uint32 | CurrentIndex | Whether the GPU data should be initialized with the asset data or not | |
| const EHairStrandsResourcesType | CurveType | Type of curves | |
| FRDGExternalBuffer[2] | DeformedSamplePositionsBuffer | ||
| FRDGExternalBuffer[2] | DeformedUniqueTrianglePositionBuffer | Strand hair roots translation and rotation in triangle-deformed position relative to the bound triangle. | |
| const int32 | MeshLODIndex | Mesh index corresponding for this root data. Used for sanity check. | |
| FRDGExternalBuffer[2] | MeshSampleWeightsBuffer | ||
| uint32 | RootCount | Store the hair projection information for each mesh LOD | |
| uint32 | SampleCount | Strand hair mesh interpolation matrix and sample indices | |
| EStatus | Status |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FHairStrandsLODDeformedRootResource
(
FHairStrandsRestRootResource* InRestResources, |
Build the hair strands resource |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const FRDGExternalBuffer & | |||
| const FRDGExternalBuffer & | |||
| uint32 | GetIndex
(
EFrameType T |
Double buffering is disabled by default unless the read-only cvar r.HairStrands.ContinuousDecimationReordering is set. | |
| const FRDGExternalBuffer & | |||
| uint32 | Return the memory size for GPU resources | ||
| bool | IsDataValid () |
A LOD is considered valid as long as its resources are initialized. | |
| bool | IsValid () |
||
| void | SwapBuffer () |
Overridden from FHairCommonResource
| Type | Name | Description | |
|---|---|---|---|
| void | InternalAllocate
(
FRDGBuilder& GraphBuilder, |
Init/Release buffers | |
| void |
Overridden from FRenderResource
| Type | Name | Description | |
|---|---|---|---|
| FString | Get the resource name |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EFrameType | |||
| EStatus |