FHairStrandsDeformedResource

Windows
MacOS
Linux

Inheritance Hierarchy

FRenderResource

FHairStrandsDeformedResource

References

Module

HairStrandsCore

Header

/Engine/Plugins/Runtime/HairStrands/Source/HairStrandsCore/Public/GroomResources.h

Include

#include "GroomResources.h"

Syntax

struct FHairStrandsDeformedResource : public FRenderResource

Variables

Name Description

Public variable

const bool

 

bDynamic

Whether the underlying resource is dynamic not (single or double buffer allocated)

Public variable

const bool

 

bInitializedData

Whether the GPU data should be initialized with the asset data or not

Public variable

bool

 

bInitializedTangent

Public variable

uint32

 

CurrentIndex

Whether the GPU data should be initialized with the asset data or not

Public variable

FVector

 

DefaultOffset

Public variable

FRDGExternalBuf...

 

DeformedOffsetBuffer

Strand hair deformed position buffer (previous and current)

Public variable

FRDGExternalBuf...

 

DeformedPositionBuffer

Strand hair deformed position buffer (previous and current)

Public variable

FVector[2]

 

PositionOffset

Position offset as the deformed positions are expressed in relative coordinate (16bits)

Public variable

const FHairStra...

 

RenderData

Reference to the hair strands render data

Public variable

FRDGExternalBuf...

 

TangentBuffer

Strand hair tangent buffer

Constructors

Name Description

Public function

FHairStrandsDeformedResource

(
    const FHairStrandsDatas::FRenderDat...,
    bool bInitializeData,
    bool bDynamic,
    const FVector& InDefaultOffset
)

Build the hair strands resource

Functions

Name Description

Public function

FRDGExternal...

 

GetBuffer

(
    EFrameType T
)

Public function Const

uint32

 

GetIndex

(
    EFrameType T
)

Helper accessors.

Public function

FVector &

 

GetPositionOffset

(
    EFrameType T
)

Public function Const

const FVecto...

 

GetPositionOffset

(
    EFrameType T
)

Public function

FRDGExternal...

 

GetPositionOffsetBuffer

(
    EFrameType T
)

Public function Const

uint32

 

GetResourcesSize()

Return the memory size for GPU resources

Public function

bool

 

NeedsToUpdateTangent()

Public function

void

 

SetPositionOffset

(
    EFrameType T,
    const FVector& Offset
)

Public function

void

 

SwapBuffer()

Overridden from FRenderResource

Name Description

Public function Virtual Const

FString

 

GetFriendlyName()

Get the resource name

Public function Virtual

void

 

InitRHI()

Init the buffer

Public function Virtual

void

 

ReleaseRHI()

Release the buffer

Enums

Name

Description

Public enum

EFrameType

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss