![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <TextureLayout.h>
Public Member Functions | |
| FBinnedTextureLayout (FIntPoint InMaxSize, int32 InBinSizeTexels) | |
| ENGINE_API bool | AddElement (FIntPoint ElementSize, FIntPoint &OutElementMin) |
| ENGINE_API void | RemoveElement (FIntRect Element) |
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.
Allocates an element from the atlas layout. Returns true if allocation succeeds. Note: Sort allocations by descending size for best packing.
Removes an element which was previously added.