FBatchedElements::Draw

Draws the batch

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/BatchedElements.h

Include

#include "BatchedElements.h"

Source

/Engine/Source/Runtime/Engine/Private/BatchedElements.cpp

Syntax

bool Draw
(
    FRHICommandList & RHICmdList,
    const FMeshPassProcessorRenderState & DrawRenderState,
    ERHIFeatureLevel::Type FeatureLevel,
    bool bNeedToSwitchVerticalAxis,
    const FSceneView & View,
    bool bHitTesting,
    float Gamma,
    EBlendModeFilter::Type Filter
) const

Remarks

Draws the batch

Parameters

Parameter

Description

View

FSceneView for shaders that need access to view constants. Non-optional to also reference its ViewProjectionMatrix and size of the ViewRect

bHitTesting

Whether or not we are hit testing

Gamma

Optional gamma override

DepthTexture

DepthTexture for manual depth testing with editor compositing in the pixel shader

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback