Navigation
API > API/Runtime > API/Runtime/Engine
Batched elements for later rendering.
| Name | FBatchedElements |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/BatchedElements.h |
| Include Path | #include "BatchedElements.h" |
Syntax
class FBatchedElements
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FBatchedElements() |
Constructor | BatchedElements.h |
Classes
| Name | Remarks |
|---|---|
| FAllocationInfo |
Structs
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| LineVertices | TArray< FSimpleElementVertex > | BatchedElements.h | ||
| MaxMeshIndicesAllowed | int32 | Max number of mesh index entries that will fit in a DrawPriUP call | BatchedElements.h | |
| MaxMeshVerticesAllowed | int32 | Max number of mesh vertices that will fit in a DrawPriUP call | BatchedElements.h | |
| MeshElements | TArray< FBatchedMeshElement > | BatchedElements.h | ||
| MeshVertices | TArray< FSimpleElementVertex > | BatchedElements.h | ||
| Points | TArray< FBatchedPoint > | BatchedElements.h | ||
| Sprites | TArray< FBatchedSprite > | BatchedElements.h | ||
| ThickLines | TArray< FBatchedThickLines > | BatchedElements.h | ||
| WireTris | TArray< FBatchedWireTris > | BatchedElements.h | ||
| WireTriVerts | TResourceArray< FSimpleElementVertex > | BatchedElements.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddAllocationInfo
(
FAllocationInfo& AllocationInfo |
Accumulates allocation info for use calling Reserve. | BatchedElements.h | |
void AddLine
(
const FVector& Start, |
Adds a line to the batch. Note only SE_BLEND_Opaque will be used for batched line rendering. | BatchedElements.h | |
void AddPoint
(
const FVector& Position, |
Adds a point to the batch. Note only SE_BLEND_Opaque will be used for batched point rendering. | BatchedElements.h | |
void AddReserveLines
(
int32 NumLines, |
Reserves space in line vertex array | BatchedElements.h | |
void AddReserveTriangles
(
int32 NumMeshTriangles, |
Reserves space in index array for a mesh element for current number plus expected number. | BatchedElements.h | |
void AddReserveVertices
(
int32 NumMeshVerts |
Reserves space in mesh vertex array for current number plus expected number. | BatchedElements.h | |
void AddSprite
(
const FVector& Position, |
Adds a sprite to the batch. | BatchedElements.h | |
void AddTranslucentLine
(
const FVector& Start, |
Adds a translucent line to the batch. | BatchedElements.h | |
void AddTriangle
(
int32 V0, |
Adds a triangle to the batch. | BatchedElements.h | |
void AddTriangle
(
int32 V0, |
Adds a triangle to the batch. | BatchedElements.h | |
void AddTriangle
(
int32 V0, |
Adds a triangle to the batch. | BatchedElements.h | |
void AddTriangleExtensive
(
int32 V0, |
Adds a triangle to the batch. Extensive version where all parameters can be passed in. | BatchedElements.h | |
int32 AddVertex
(
const FVector4& InPosition, |
This is for compatibility but should be avoided since it's slower due to conversions. | BatchedElements.h | |
int32 AddVertexf
(
const FVector4f& InPosition, |
Adds a mesh vertex to the batch. | BatchedElements.h | |
void Append
(
FBatchedElements& Other |
Appends contents of another batched elements into this one and clears the other one. | BatchedElements.h | |
void Clear() |
Clears any batched elements | BatchedElements.h | |
bool Draw
(
FRHICommandList& RHICmdList, |
Draws the batch | BatchedElements.h | |
void EnableMobileHDREncoding
(
bool bInEnableHDREncoding |
BatchedElements.h | ||
uint32 GetAllocatedSize() |
Helper function to return the amount of memory allocated by this class | BatchedElements.h | |
bool HasPrimsToDraw() |
BatchedElements.h | ||
void Reserve
(
const FAllocationInfo& AllocationInfo |
Reserves memory for all containers. | BatchedElements.h | |
void ReserveTriangles
(
int32 NumMeshTriangles, |
Reserves space in index array for a mesh element | BatchedElements.h | |
void ReserveVertices
(
int32 NumMeshVerts |
Reserves space in mesh vertex array for at least this many total verts. | BatchedElements.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FSceneView CreateProxySceneView
(
const FMatrix& ProjectionMatrix, |
Creates a proxy FSceneView for operations that are not tied directly to a scene but still require batched elements to be drawn. | BatchedElements.h |