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