Class PowerOfTwoTextureAtlas
Texture atlas with rectangular power of two size.
Inherited Members
Namespace: UnityEngine .Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public class PowerOfTwoTextureAtlas : Texture2DAtlas
Constructors
Name | Description |
---|---|
Power |
Create a new texture atlas, must have power of two size. |
Properties
Name | Description |
---|---|
mip |
Used mipmap padding size in power of two. |
Methods
Name | Description |
---|---|
Allocate |
Allocate space from the atlas for a texture and copy texture contents into the atlas. |
Blit |
Blit octahedral texture into the atlas with padding. |
Blit |
Blit octahedral texture into the atlas with padding. |
Blit |
Blit texture into the atlas with padding. |
Blit |
Blit texture into the atlas with padding and blending. |
Get |
Get cache size in bytes. |
Get |
Compute the max size of a power of two atlas for a given size in byte (weight). |
Get |
Get location of the actual texture data without padding in the atlas. |
Get |
Get location of the actual texture data without padding in the atlas. |
Relayout |
sort all the requested allocation from biggest to smallest and re-insert them. This function does not moves the textures in the atlas, it only changes their coordinates |
Reserve |
Reserves the space on the texture atlas |
Reserve |
Reserves the space on the texture atlas |
Reserve |
Reserves the space on the texture atlas |
Reset |
Clear tracked requested textures. |