struct TreeTextureAtlasLayoutSettings

Settings that control how a TreeTextureAtlasLayout behaves.

Public

Fields

Size

Size2UI Size

Size of the atlas in pixels.

Alignment

Size2UI Alignment

If >1 all allocations will be in multiple of this value.

Higher values help reduce fragmentation.

SmallSizeLimit

u32 SmallSizeLimit

Free nodes with rectangles under this size are treated as small and will be placed in a separate bucket for faster lookup.

LargeSizeLimit

u32 LargeSizeLimit

Free nodes with rectangles over this size are treated as large and will be placed in a separate bucket for faster lookup.

MaximumPageCount

u32 MaximumPageCount

Maximum number of pages to allocated.

If 0 it will be unlimited.

Padding

u32 Padding

Padding in pixels to apply to left/right/top/bottom of each image in the atlas.