FVisibleMeshDrawCommand

Stores information about a mesh draw command that has been determined to be visible, for further visibility processing.

Windows
MacOS
Linux

References

Module

Renderer

Header

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

Include

#include "MeshPassProcessor.h"

Syntax

class FVisibleMeshDrawCommand

Remarks

Stores information about a mesh draw command that has been determined to be visible, for further visibility processing. This class should only store data needed by InitViews operations (visibility, sorting) and not data needed for draw submission, which belongs in FMeshDrawCommand.

Variables

Name Description

Public variable

int32

 

DrawPrimitiveId

Draw PrimitiveId this draw command is associated with - used by the shader to fetch primitive data from the PrimitiveSceneData SRV.

Public variable

ERasterizerCull...

 

MeshCullMode

Public variable

const FMeshDraw...

 

MeshDrawCommand

Mesh Draw Command stored separately to avoid fetching its data during sorting.

Public variable

ERasterizerFill...

 

MeshFillMode

Public variable

int32

 

PrimitiveIdBufferOffset

Offset into the buffer of PrimitiveIds built for this pass, in int32's.

Public variable

int32

 

ScenePrimitiveId

Scene PrimitiveId that generated this draw command, or -1 if no FPrimitiveSceneInfo. Can be used to backtrack to the FPrimitiveSceneInfo.

Public variable

FMeshDrawComman...

 

SortKey

Sort key for non state based sorting (e.g. sort translucent draws by depth).

Public variable

int32

 

StateBucketId

Dynamic instancing state bucket ID.

Functions

Name Description

Public function

void

 

Setup

(
    const FMeshDrawCommand* InMesh...,
    int32 InDrawPrimitiveId,
    int32 InScenePrimitiveId,
    int32 InStateBucketId,
    ERasterizerFillMode InMeshFillMode,
    ERasterizerCullMode InMeshCullMode,
    FMeshDrawCommandSortKey InSortKey
)

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