UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FSlateElementBatch Class Reference

#include <ElementBatcher.h>

Public Member Functions

 FSlateElementBatch (const FSlateShaderResource *InShaderResource, const FShaderParams &InShaderParams, ESlateShader ShaderType, ESlateDrawPrimitive PrimitiveType, ESlateDrawEffect InDrawEffects, ESlateBatchDrawFlag InBatchFlags, const FSlateDrawElement &InDrawElement, int32 InstanceCount=0, uint32 InstanceOffset=0, ISlateUpdatableInstanceBuffer *InstanceData=nullptr)
 
 FSlateElementBatch (TWeakPtr< ICustomSlateElement, ESPMode::ThreadSafe > InCustomDrawer, const FSlateDrawElement &InDrawElement)
 
bool operator== (const FSlateElementBatch &Other) const
 
const FSlateShaderResourceGetShaderResource () const
 
const FShaderParamsGetShaderParams () const
 
ESlateBatchDrawFlag GetDrawFlags () const
 
ESlateDrawPrimitive GetPrimitiveType () const
 
ESlateShader GetShaderType () const
 
ESlateDrawEffect GetDrawEffects () const
 
const TWeakPtr< ICustomSlateElement, ESPMode::ThreadSafeGetCustomDrawer () const
 
int32 GetInstanceCount () const
 
uint32 GetInstanceOffset () const
 
const ISlateUpdatableInstanceBufferGetInstanceData () const
 
int8 GetSceneIndex () const
 

Public Attributes

uint32 NumElementsInBatch
 
int32 VertexArrayIndex
 
int32 IndexArrayIndex
 

Detailed Description

Represents an a set of slate draw elements that are batched together These later get converted into FSlateRenderBatches for final rendering

Constructor & Destructor Documentation

◆ FSlateElementBatch() [1/2]

FSlateElementBatch::FSlateElementBatch ( const FSlateShaderResource InShaderResource,
const FShaderParams InShaderParams,
ESlateShader  ShaderType,
ESlateDrawPrimitive  PrimitiveType,
ESlateDrawEffect  InDrawEffects,
ESlateBatchDrawFlag  InBatchFlags,
const FSlateDrawElement InDrawElement,
int32  InstanceCount = 0,
uint32  InstanceOffset = 0,
ISlateUpdatableInstanceBuffer InstanceData = nullptr 
)

◆ FSlateElementBatch() [2/2]

FSlateElementBatch::FSlateElementBatch ( TWeakPtr< ICustomSlateElement, ESPMode::ThreadSafe InCustomDrawer,
const FSlateDrawElement InDrawElement 
)

Member Function Documentation

◆ GetCustomDrawer()

const TWeakPtr< ICustomSlateElement, ESPMode::ThreadSafe > FSlateElementBatch::GetCustomDrawer ( ) const
inline

◆ GetDrawEffects()

ESlateDrawEffect FSlateElementBatch::GetDrawEffects ( ) const
inline

◆ GetDrawFlags()

ESlateBatchDrawFlag FSlateElementBatch::GetDrawFlags ( ) const
inline

◆ GetInstanceCount()

int32 FSlateElementBatch::GetInstanceCount ( ) const
inline

◆ GetInstanceData()

const ISlateUpdatableInstanceBuffer * FSlateElementBatch::GetInstanceData ( ) const
inline

◆ GetInstanceOffset()

uint32 FSlateElementBatch::GetInstanceOffset ( ) const
inline

◆ GetPrimitiveType()

ESlateDrawPrimitive FSlateElementBatch::GetPrimitiveType ( ) const
inline

◆ GetSceneIndex()

int8 FSlateElementBatch::GetSceneIndex ( ) const
inline

◆ GetShaderParams()

const FShaderParams & FSlateElementBatch::GetShaderParams ( ) const
inline

◆ GetShaderResource()

const FSlateShaderResource * FSlateElementBatch::GetShaderResource ( ) const
inline

◆ GetShaderType()

ESlateShader FSlateElementBatch::GetShaderType ( ) const
inline

◆ operator==()

bool FSlateElementBatch::operator== ( const FSlateElementBatch Other) const
inline

Member Data Documentation

◆ IndexArrayIndex

int32 FSlateElementBatch::IndexArrayIndex

Index into an array of index arrays where this batches indices are found (before submitting to the index buffer)

◆ NumElementsInBatch

uint32 FSlateElementBatch::NumElementsInBatch

Number of elements in the batch

◆ VertexArrayIndex

int32 FSlateElementBatch::VertexArrayIndex

Index into an array of vertex arrays where this batches vertices are found (before submitting to the vertex buffer)


The documentation for this class was generated from the following files: