![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Public Member Functions | |
| FParticleTileAllocator () | |
| void | Init (bool bAllowTileResizing, uint32 TileCount, uint32 InMaxTileCount) |
| bool | Resize () |
| uint32 | Allocate () |
| void | Free (int32 TileIndex) |
| int32 | GetFreeTileCount () const |
| int32 | GetResizeFactor () const |
| int32 | GetAllocatedTileCount () const |
| bool | SupportResizingTiles () const |
Public Attributes | |
| bool | bDirtyAlloc |
Stack allocator for managing tile lifetime.
|
inline |
Default constructor.
|
inline |
Allocate a tile.
Frees a tile so it may be allocated by another emitter.
| TileIndex | - The index of the tile to free. |
|
inline |
Returns the max allocated tiles.
|
inline |
Returns the number of free tiles.
|
inline |
Returns the resize factor of the gpu sim textures.
|
inline |
Init the tile allocator
Check if the tile can be resized at runtime.
|
inline |
Resize the tile allocator to support more tiles.
Each time we resize, the associated textures width and height are multiplied by 2. This means that each time we increase the tile allocator, the tile count will grow by a 4 ^ (resizecount) factor. Ex: Initial textures is driven by GParticleSimulationDynTextureSizeXY, and contains one tile. The first resize will contain 4 tiles, the second resize will have 16 tiles, and so on. The tile allocated from a resize are allocated following a Morton Z curve pattern.
|
inline |
Access function to know if the tile allocator supports resizing tiles.
| bool FParticleTileAllocator::bDirtyAlloc |