FNDIHairStrandsBuffer

Render buffers that will be used in hlsl functions

Windows
MacOS
Linux

Inheritance Hierarchy

FRenderResource

FNDIHairStrandsBuffer

References

Module

HairStrandsCore

Header

/Engine/Plugins/Runtime/HairStrands/Source/HairStrandsCore/Public/Niagara/NiagaraDataInterfaceHairStrands.h

Include

#include "Niagara/NiagaraDataInterfaceHairStrands.h"

Syntax

struct FNDIHairStrandsBuffer : public FRenderResource

Remarks

Render buffers that will be used in hlsl functions

Variables

Name Description

Public variable

FRWBuffer

 

BoundingBoxBuffer

Bounding Box Buffer

Public variable

FIntVector4

 

BoundingBoxOffsets

Bounding box offsets

Public variable

FRWBuffer

 

CurvesOffsetsBuffer

Strand curves point offset buffer

Public variable

FRWBuffer

 

DeformedPositionBuffer

Deformed position buffer in case no ressource are there

Public variable

TStaticArray< f...

 

ParamsScale

Scales along the strand

Public variable

FRWBuffer

 

ParamsScaleBuffer

Params scale buffer

Public variable

const FHairStra...

 

SourceDatas

The strand asset datas from which to sample

Public variable

const FHairStra...

 

SourceDeformedResources

The strand deformed resource to write into

Public variable

const FHairStra...

 

SourceDeformedRootResources

The strand root resource to write into

Public variable

const FHairStra...

 

SourceRestResources

The strand asset resource from which to sample

Public variable

const FHairStra...

 

SourceRestRootResources

The strand root resource to write into

Functions

Name Description

Public function

void

 

Initialize

(
    const FHairStrandsDatas* HairS...,
    const FHairStrandsRestResource*...,
    const FHairStrandsDeformedResource ...,
    const FHairStrandsRestRootResource ...,
    const FHairStrandsDeformedRootResou...,
    const TStaticArray< float, 32*...
)

Set the asset that will be used to affect the buffer

Public function

void

 

Transfer

(
    const TStaticArray< float, 32*...
)

Transfer CPU datas to GPU

Public function

void

 

Update

(
    const FHairStrandsDatas* HairS...,
    const FHairStrandsRestResource*...,
    const FHairStrandsDeformedResource ...,
    const FHairStrandsRestRootResource ...,
    const FHairStrandsDeformedRootResou...
)

Set the asset that will be used to affect the buffer

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