Navigation
API > API/Plugins > API/Plugins/HairStrandsCore
Inheritance Hierarchy
- FRenderResource
- FHairCommonResource
- FHairStrandsLODRestRootResource
References
| Module | HairStrandsCore |
| Header | /Engine/Plugins/Runtime/HairStrands/Source/HairStrandsCore/Public/GroomResources.h |
| Include | #include "GroomResources.h" |
Syntax
struct FHairStrandsLODRestRootResource : public FHairCommonResource
Remarks
Render buffers for root deformation for dynamic meshes
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32 | AvailableCurveCount | ||
| FHairStrandsRootBulkData & | BulkData | Store CPU data for root info & root binding | |
| const EHairStrandsResourcesType | CurveType | Type of curves | |
| FRDGExternalBuffer | MeshInterpolationWeightsBuffer | ||
| const uint32 | MeshLODIndex | Mesh LOD index for this root resource. Used for sanity check | |
| FRDGExternalBuffer | MeshSampleIndicesAndSectionsBuffer | ||
| FRDGExternalBuffer | RestSamplePositionsBuffer | ||
| FRDGExternalBuffer | RestUniqueTrianglePositionBuffer | Strand hair roots translation and rotation in rest position relative to the bound triangle. | |
| FRDGExternalBuffer | RootBarycentricBuffer | ||
| FRDGExternalBuffer | RootToUniqueTriangleIndexBuffer | Strands hair root to unique triangle index | |
| uint32 | SampleCount | Strand hair mesh interpolation matrix and sample indices | |
| EStatus | Status | ||
| FRDGExternalBuffer | UniqueTriangleIndexBuffer | Triangle on which a root is attached When the projection is done with source to target mesh transfer, the projection indices does not match. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FHairStrandsLODRestRootResource
(
FHairStrandsRootBulkData& BulkData, |
Build the hair strands resource |
Functions
| Type | Name | Description | |
|---|---|---|---|
| uint32 | Return the memory size for GPU resources | ||
| uint32 | GetRootCount () |
Accessors. | |
| const bool | IsDataValid () |
||
| const bool | IsValid () |
||
| void | Reset () |
Populate GPU LOD data from RootData (this function doesn't initialize resources) |
Overridden from FHairCommonResource
| Type | Name | Description | |
|---|---|---|---|
| void | InternalAllocate
(
FRDGBuilder& GraphBuilder, |
Init/Release buffers | |
| FHairStrandsBulkCommon * | |||
| bool | InternalGetOrRequestData
(
uint32 InRequestedCurveCount, |
||
| void | |||
| void |
Overridden from FRenderResource
| Type | Name | Description | |
|---|---|---|---|
| FString | Get the resource name |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EStatus |