FMeshPassProcessor

Base class of mesh processors, whose job is to transform [FMeshBatch](API\Runtime\Engine\FMeshBatch) draw descriptions received from scene proxy implementations into FMeshDrawCommands ready for the RHI command list

Windows
MacOS
Linux

References

Module

Renderer

Header

/Engine/Source/Runtime/Renderer/Public/MeshPassProcessor.h

Include

#include "MeshPassProcessor.h"

Syntax

class FMeshPassProcessor

Remarks

Base class of mesh processors, whose job is to transform FMeshBatch draw descriptions received from scene proxy implementations into FMeshDrawCommands ready for the RHI command list

Variables

Name Description

Public variable

FMeshPassDrawLi...

 

DrawListContext

Public variable

ERHIFeatureLeve...

 

FeatureLevel

Public variable

const FScene &#...

 

Scene

Public variable

const FSceneVie...

 

ViewIfDynamicMeshCommand

Constructors

Name Description

Public function

FMeshPassProcessor

(
    const FScene* InScene,
    ERHIFeatureLevel::Type InFeatureLev...,
    const FSceneView* InViewIfDyna...,
    FMeshPassDrawListContext* InDr...
)

Destructors

Name Description

Public function Virtual

~FMeshPassProcessor()

Functions

Name Description

Public function

void

 

AddMeshBatch

(
    const FMeshBatch&restrict MeshBa...,
    uint64 BatchElementMask,
    const FPrimitiveSceneProxy*
r...,
    int32 StaticMeshId
)

Add a FMeshBatch to the pass.

Public function

void

 

BuildMeshDrawCommands

(
    const FMeshBatch&restrict MeshBa...,
    uint64 BatchElementMask,
    const FPrimitiveSceneProxy*
r...,
    const FMaterialRenderProxy&restr...,
    const FMaterial&
restrict Materia...,
    const FMeshPassProcessorRenderState...,
    PassShadersType PassShaders,
    ERasterizerFillMode MeshFillMode,
    ERasterizerCullMode MeshCullMode,
    FMeshDrawCommandSortKey SortKey,
    EMeshPassFeatures MeshPassFeatures,
    const ShaderElementDataType& Shade...
)

Public function

void

 

BuildMeshDrawCommands

(
    const FMeshBatch&RESTRICT MeshBatc...,
    uint64 BatchElementMask,
    const FPrimitiveSceneProxy*RES...,
    const FMaterialRenderProxy&RESTRIC...,
    const FMaterial&RESTRICT MaterialR...,
    const FMeshPassProcessorRenderState...,
    PassShadersType PassShaders,
    ERasterizerFillMode MeshFillMode,
    ERasterizerCullMode MeshCullMode,
    FMeshDrawCommandSortKey SortKey,
    EMeshPassFeatures MeshPassFeatures,
    const ShaderElementDataType& Shade...
)

Public function Static

ERasterizerC...

 

ComputeMeshCullMode

(
    const FMeshBatch& Mesh,
    const FMaterial& InMaterialResourc...,
    const FMeshDrawingPolicyOverrideSet...
)

Public function Static

ERasterizerF...

 

ComputeMeshFillMode

(
    const FMeshBatch& Mesh,
    const FMaterial& InMaterialResourc...,
    const FMeshDrawingPolicyOverrideSet...
)

Public function Static

FMeshDrawing...

 

ComputeMeshOverrideSettings

(
    const FMeshBatch& Mesh
)

Protected function Const

void

 

GetDrawCommandPrimitiveId

(
    const FPrimitiveSceneInfo*__re...,
    const FMeshBatchElement& BatchElem...,
    int32& DrawPrimitiveId,
    int32& ScenePrimitiveId
)

Public function Static

ERasterizerC...

 

InverseCullMode

(
    ERasterizerCullMode CullMode
)

Public function

void

 

SetDrawListContext

(
    FMeshPassDrawListContext* InDr...
)

Classes

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