Navigation
API > API/Runtime > API/Runtime/Engine
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/TextureLayout.h |
| Include | #include "TextureLayout.h" |
Syntax
class FBinnedTextureLayout
Remarks
A simple binned style atlas layout, which uses FTextureLayout as the bin allocator. Binning greatly reduces fragmentation over time with many allocations of different sizes and lifetimes, but ties up free memory in other bins. Binning also greatly reduces the FTextureLayout tree depth, and therefore allocation cost. Best results when the number of unique allocation sizes are small.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FBinnedTextureLayout
(
FIntPoint InMaxSize, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AddElement
(
FIntPoint ElementSize, |
Allocates an element from the atlas layout. | |
| void | RemoveElement
(
FIntRect Element |
Removes an element which was previously added. |