Navigation
API > API/Plugins > API/Plugins/HairStrandsCore
Render buffers that will be used for rendering
| Name | FHairStrandsRestResource |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/HairStrands/Source/HairStrandsCore/Public/GroomResources.h |
| Include Path | #include "GroomResources.h" |
Syntax
struct FHairStrandsRestResource : public FHairCommonResource
Inheritance Hierarchy
- FRenderResource → FHairCommonResource → FHairStrandsRestResource
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FHairStrandsRestResource
(
FHairStrandsBulkData& InBulkData, |
Build the hair strands resource | GroomResources.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BulkData | FHairStrandsBulkData & | Reference to the hair strands render data | GroomResources.h | |
| CachedTangentPointCount | uint32 | GroomResources.h | ||
| CurveAttributeBuffer | FRDGExternalBuffer | Strand hair per-curve attribute buffer | GroomResources.h | |
| CurveBuffer | FRDGExternalBuffer | Strand hair curves buffer (contains curves' points offset and count) | GroomResources.h | |
| CurveData | TArray< FPackedHairCurve > | Curve: Point offset & count | GroomResources.h | |
| CurveMappingBuffer | FRDGExternalBuffer | Strand hair per-curve source mapping buffer | GroomResources.h | |
| CurveType | const EHairStrandsResourcesType | Type of curves | GroomResources.h | |
| ExternalBuffers | TMap< FString, FRDGExternalBuffer > | List of external buffers | GroomResources.h | |
| PointAttributeBuffer | FRDGExternalBuffer | Strand hair per-point attribute buffer | GroomResources.h | |
| PointMappingBuffer | FRDGExternalBuffer | Strand hair per-point source mapping buffer | GroomResources.h | |
| PointToCurveBuffer | FRDGExternalBuffer | Strand hair vertex to curve index mapping | GroomResources.h | |
| PositionBuffer | FRDGExternalBuffer | Strand hair rest position buffer | GroomResources.h | |
| PositionOffsetBuffer | FRDGExternalBuffer | Strand hair rest offset position buffer | GroomResources.h | |
| TangentBuffer | FRDGExternalBuffer | Strand hair tangent buffer (non-allocated unless used for static geometry) | GroomResources.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint32 GetCurveCount() |
GroomResources.h | ||
uint32 GetPointCount() |
GroomResources.h | ||
FVector GetPositionOffset() |
GroomResources.h | ||
uint32 GetResourcesSize() |
Return the memory size for GPU resources | GroomResources.h | |
uint32 GetSourceCurveCount() |
GroomResources.h | ||
uint32 GetSourcePointCount() |
GroomResources.h | ||
FRDGExternalBuffer GetTangentBuffer
(
FRDGBuilder& GraphBuilder, |
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 |