UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
HairStrandsForwardRaster.cpp File Reference

Classes

class  FHairCullSegmentCS
 
class  FHairStrandsForwardRasterPrepareDepthGridCS
 
class  FHairStrandsForwardRasterBinningCS
 
class  FHairStrandsForwardRasterCompactionCS
 
class  FHairStrandsForwardRasterRasterizeCS
 
class  FHairStrandsForwardRasterDebugCS
 

Functions

void SetUpViewHairRenderInfo (const FViewInfo &ViewInfo, FVector4f &OutHairRenderInfo, uint32 &OutHairRenderInfoBits, uint32 &OutHairComponents)
 
void SetUpViewHairRenderInfo (const FViewInfo &ViewInfo, bool bEnableMSAA, FVector4f &OutHairRenderInfo, uint32 &OutHairRenderInfoBits, uint32 &OutHairComponents)
 
FMinHairRadiusAtDepth1 ComputeMinStrandRadiusAtDepth1 (const FIntPoint &Resolution, const float FOV, const uint32 SampleCount, const float OverrideStrandHairRasterizationScale, const float OrthoWidth)
 
bool IsHairStrandsForwardRasterSupported (EShaderPlatform In)
 
 IMPLEMENT_GLOBAL_SHADER (FHairCullSegmentCS, "/Engine/Private/HairStrands/HairStrandsForwardCulling.usf", "CSMain", SF_Compute)
 
 IMPLEMENT_GLOBAL_SHADER (FHairStrandsForwardRasterPrepareDepthGridCS, "/Engine/Private/HairStrands/HairStrandsForwardRaster.usf", "PrepareDepthGridCS", SF_Compute)
 
 IMPLEMENT_GLOBAL_SHADER (FHairStrandsForwardRasterBinningCS, "/Engine/Private/HairStrands/HairStrandsForwardRaster.usf", "BinningCS", SF_Compute)
 
 IMPLEMENT_GLOBAL_SHADER (FHairStrandsForwardRasterCompactionCS, "/Engine/Private/HairStrands/HairStrandsForwardRaster.usf", "CompactionCS", SF_Compute)
 
 IMPLEMENT_GLOBAL_SHADER (FHairStrandsForwardRasterRasterizeCS, "/Engine/Private/HairStrands/HairStrandsForwardRaster.usf", "RasterCS", SF_Compute)
 
 IMPLEMENT_GLOBAL_SHADER (FHairStrandsForwardRasterDebugCS, "/Engine/Private/HairStrands/HairStrandsForwardRaster.usf", "MainCS", SF_Compute)
 
FRasterForwardCullingOutput AddHairStrandsForwardCullingPass (FRDGBuilder &GraphBuilder, const FViewInfo &ViewInfo, const FHairStrandsMacroGroupDatas &MacroGroupDatas, const FIntPoint &InResolution, const FRDGTextureRef SceneDepthTexture, bool bSupportCulling, bool bForceRegister)
 
void AddHairStrandsForwardRasterPass (FRDGBuilder &GraphBuilder, const FViewInfo &ViewInfo, const FIntPoint &InResolution, const FHairStrandsVisibilityData &InData, const FRDGTextureRef SceneDepthTexture, const FRDGTextureRef SceneColorTexture, const FRDGTextureRef SceneVelocityTexture)
 

Variables

int32 GHairVisibilityComputeRaster_Culling
 
int32 GHairVisibilityComputeRaster_MaxTiles
 
int32 GHairVisibilityComputeRaster_TileSize
 
int32 GHairVisibility_NumClassifiers
 
int32 GHairVisibilityComputeRaster_NumBinners
 
int32 GHairVisibilityComputeRaster_NumRasterizers
 
int32 GHairVisibilityComputeRaster_NumRasterizersNaive
 
int32 GHairVisibilityComputeRaster_Debug
 

Function Documentation

◆ AddHairStrandsForwardCullingPass()

FRasterForwardCullingOutput AddHairStrandsForwardCullingPass ( FRDGBuilder GraphBuilder,
const FViewInfo ViewInfo,
const FHairStrandsMacroGroupDatas MacroGroupDatas,
const FIntPoint InResolution,
const FRDGTextureRef  SceneDepthTexture,
bool  bSupportCulling,
bool  bForceRegister 
)

◆ AddHairStrandsForwardRasterPass()

void AddHairStrandsForwardRasterPass ( FRDGBuilder GraphBuilder,
const FViewInfo ViewInfo,
const FIntPoint InResolution,
const FHairStrandsVisibilityData InData,
const FRDGTextureRef  SceneDepthTexture,
const FRDGTextureRef  SceneColorTexture,
const FRDGTextureRef  SceneVelocityTexture 
)

◆ ComputeMinStrandRadiusAtDepth1()

FMinHairRadiusAtDepth1 ComputeMinStrandRadiusAtDepth1 ( const FIntPoint Resolution,
const float  FOV,
const uint32  SampleCount,
const float  OverrideStrandHairRasterizationScale,
const float  OrthoWidth 
)

◆ IMPLEMENT_GLOBAL_SHADER() [1/6]

IMPLEMENT_GLOBAL_SHADER ( FHairCullSegmentCS  ,
"/Engine/Private/HairStrands/HairStrandsForwardCulling.usf"  ,
"CSMain"  ,
SF_Compute   
)

◆ IMPLEMENT_GLOBAL_SHADER() [2/6]

IMPLEMENT_GLOBAL_SHADER ( FHairStrandsForwardRasterBinningCS  ,
"/Engine/Private/HairStrands/HairStrandsForwardRaster.usf"  ,
"BinningCS"  ,
SF_Compute   
)

◆ IMPLEMENT_GLOBAL_SHADER() [3/6]

IMPLEMENT_GLOBAL_SHADER ( FHairStrandsForwardRasterCompactionCS  ,
"/Engine/Private/HairStrands/HairStrandsForwardRaster.usf"  ,
"CompactionCS"  ,
SF_Compute   
)

◆ IMPLEMENT_GLOBAL_SHADER() [4/6]

IMPLEMENT_GLOBAL_SHADER ( FHairStrandsForwardRasterDebugCS  ,
"/Engine/Private/HairStrands/HairStrandsForwardRaster.usf"  ,
"MainCS"  ,
SF_Compute   
)

◆ IMPLEMENT_GLOBAL_SHADER() [5/6]

IMPLEMENT_GLOBAL_SHADER ( FHairStrandsForwardRasterPrepareDepthGridCS  ,
"/Engine/Private/HairStrands/HairStrandsForwardRaster.usf"  ,
"PrepareDepthGridCS"  ,
SF_Compute   
)

◆ IMPLEMENT_GLOBAL_SHADER() [6/6]

IMPLEMENT_GLOBAL_SHADER ( FHairStrandsForwardRasterRasterizeCS  ,
"/Engine/Private/HairStrands/HairStrandsForwardRaster.usf"  ,
"RasterCS"  ,
SF_Compute   
)

◆ IsHairStrandsForwardRasterSupported()

bool IsHairStrandsForwardRasterSupported ( EShaderPlatform  In)
inline

◆ SetUpViewHairRenderInfo() [1/2]

void SetUpViewHairRenderInfo ( const FViewInfo ViewInfo,
bool  bEnableMSAA,
FVector4f OutHairRenderInfo,
uint32 OutHairRenderInfoBits,
uint32 OutHairComponents 
)

◆ SetUpViewHairRenderInfo() [2/2]

void SetUpViewHairRenderInfo ( const FViewInfo ViewInfo,
FVector4f OutHairRenderInfo,
uint32 OutHairRenderInfoBits,
uint32 OutHairComponents 
)

Variable Documentation

◆ GHairVisibility_NumClassifiers

int32 GHairVisibility_NumClassifiers
extern

◆ GHairVisibilityComputeRaster_Culling

int32 GHairVisibilityComputeRaster_Culling
extern

◆ GHairVisibilityComputeRaster_Debug

int32 GHairVisibilityComputeRaster_Debug
extern

◆ GHairVisibilityComputeRaster_MaxTiles

int32 GHairVisibilityComputeRaster_MaxTiles
extern

◆ GHairVisibilityComputeRaster_NumBinners

int32 GHairVisibilityComputeRaster_NumBinners
extern

◆ GHairVisibilityComputeRaster_NumRasterizers

int32 GHairVisibilityComputeRaster_NumRasterizers
extern

◆ GHairVisibilityComputeRaster_NumRasterizersNaive

int32 GHairVisibilityComputeRaster_NumRasterizersNaive
extern

◆ GHairVisibilityComputeRaster_TileSize

int32 GHairVisibilityComputeRaster_TileSize
extern