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