Navigation
API > API/Runtime > API/Runtime/Landscape
References
| Module | Landscape |
| Header | /Engine/Source/Runtime/Landscape/Public/LandscapeEditLayerRenderer.h |
| Include | #include "LandscapeEditLayerRenderer.h" |
Syntax
struct FMergeRenderBatch
Remarks
Defines an individual render batch when merging the landscape. A batch corresponds to a render group on a world's region, i.e. a set of weightmaps (or the heightmap) to render on a portion of the world. Each batch is composed of a series of render steps.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSet< ULandscapeComponent * > | ComponentsToRender | List of all components involved in this batch | |
| TMap< ULandscapeComponent *, TBitArray<> > | ComponentToTargetLayerBitIndices | List of components involved in this batch and the target layers they're writing to (redundant with ComponentsToRender but we keep the latter for convenience) (each bit corresponds to a target layer name in FMergeRenderContext's AllTargetLayerNames) | |
| ALandscape * | Landscape | ||
| FIntPoint | MaxComponentKey | ||
| FIntPoint | MinComponentKey | ||
| TArray< FMergeRenderStep > | RenderSteps | Sequential list of rendering operations that need to be performed to fully render this batch | |
| FIntPoint | Resolution | TODO [jonathan.bard] : rename EffectiveResolution and make private maybe? | |
| FIntRect | SectionRect | Section of the landscape being covered by this batch (in landscape vertex coordinates, inclusive bounds) | |
| TBitArray | TargetLayerNameBitIndices | List of all target layers being rendered in this batch (i.e. bitwise OR of all of the render steps' RenderGroupBitIndices). | |
| TArray< TSet< ULandscapeComponent * > > | TargetLayersToComponents | Reverse lookup of ComponentToTargetLayerBitIndices : one entry per element in ComponentToTargetLayerBitIndices, each entry containing all of the components involved in this merge for this target layer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ComputeAllSubsectionRects
(
TArray< FIntRect >& OutSubsectionRects, |
Compute the rects corresponding to the sub-sections that need to be read from and written to when expanding the render target (inclusive bounds) | |
| FIntRect | ComputeSectionRect
(
ULandscapeComponent* InComponent, |
Find the area in the render batch render target corresponding to this component | |
| int32 | ComputeSubsectionRects
(
ULandscapeComponent* InComponent, |
Find the area in the render batch render target corresponding to each of the subsections of this component | |
| FIntPoint | GetRenderTargetResolution
(
bool bInWithDuplicateBorders |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator<
(
const FMergeRenderBatch& InOther |