FHairStrandsRestResource

Render buffers that will be used for rendering

Windows
MacOS
Linux

Inheritance Hierarchy

FRenderResource

FHairStrandsRestResource

References

Module

HairStrandsCore

Header

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

Include

#include "GroomResources.h"

Syntax

struct FHairStrandsRestResource : public FRenderResource

Remarks

Render buffers that will be used for rendering

Variables

Name Description

Public variable

FRDGExternalBuf...

 

AttributeBuffer

Strand hair attribute buffer

Public variable

FRDGExternalBuf...

 

MaterialBuffer

Strand hair material buffer

Public variable

FVector

 

PositionOffset

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

Public variable

const FHairStra...

 

RenderData

Reference to the hair strands render data

Public variable

FRDGExternalBuf...

 

RestPositionBuffer

Strand hair rest position buffer

Constructors

Name Description

Public function

FHairStrandsRestResource

(
    const FHairStrandsDatas::FRenderDat...,
    const FVector& PositionOffset
)

Build the hair strands resource

Functions

Name Description

Public function Const

uint32

 

GetResourcesSize()

Return the memory size for GPU resources

Public function Const

uint32

 

GetVertexCount()

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

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