Navigation
API > API/Plugins > API/Plugins/HairStrandsCore
| Name | FHairStrandsDeformedResource |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/HairStrands/Source/HairStrandsCore/Public/GroomResources.h |
| Include Path | #include "GroomResources.h" |
Syntax
struct FHairStrandsDeformedResource : public FHairCommonResource
Inheritance Hierarchy
- FRenderResource → FHairCommonResource → FHairStrandsDeformedResource
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FHairStrandsDeformedResource
(
FHairStrandsBulkData& BulkData, |
Build the hair strands resource | GroomResources.h |
Enums
Public
| Name | Remarks |
|---|---|
| EFrameType |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BulkData | FHairStrandsBulkData & | Reference to the hair strands render data | 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 | |
| DeformedOffsetBuffer | FRDGExternalBuffer | Strand hair deformed position buffer (previous and current) | GroomResources.h | |
| DeformedPositionBuffer | FRDGExternalBuffer | Strand hair deformed position buffer (previous and current) | GroomResources.h | |
| DeformerBuffer | FRDGExternalBuffer | Strand hair deformer buffer. This buffer is optionally created & filled in by a mesh deformer | GroomResources.h | |
| DeformerCurveAttributeBuffer | FRDGExternalBuffer | GroomResources.h | ||
| DeformerPointAttributeBuffer | FRDGExternalBuffer | GroomResources.h | ||
| ExternalBuffers | TMap< FString, FRDGExternalBuffer > | List of external buffers | GroomResources.h | |
| PositionOffset | FVector | Position offset as the deformed positions are expressed in relative coordinate (16bits) | GroomResources.h | |
| TangentBuffer | FRDGExternalBuffer | Strand hair tangent buffer | GroomResources.h | |
| UniqueViewIDs | uint32 | Track the view which has update the formed position. | GroomResources.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRDGExternalBuffer & GetBuffer
(
EFrameType T |
GroomResources.h | ||
FRDGExternalBuffer & GetDeformerBuffer
(
FRDGBuilder& GraphBuilder |
Return deformer buffers. | GroomResources.h | |
FRDGExternalBuffer & GetDeformerCurveAttributeBuffer
(
FRDGBuilder& GraphBuilder |
GroomResources.h | ||
FRDGExternalBuffer & GetDeformerPointAttributeBuffer
(
FRDGBuilder& GraphBuilder |
GroomResources.h | ||
uint32 GetIndex
(
EFrameType T |
Helper accessors. | GroomResources.h | |
const FVector & GetPositionOffset
(
EFrameType T |
GroomResources.h | ||
FVector & GetPositionOffset
(
EFrameType T |
GroomResources.h | ||
| GroomResources.h | |||
const FRDGExternalBuffer & GetPositionOffsetBuffer
(
EFrameType T |
GroomResources.h | ||
uint32 GetResourcesSize() |
Return the memory size for GPU resources | GroomResources.h | |
uint32 GetUniqueViewID
(
EFrameType T |
GroomResources.h | ||
uint32 & GetUniqueViewID
(
EFrameType T |
GroomResources.h | ||
void SetPositionOffset
(
EFrameType T, |
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 |