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 |
|---|---|
| PowerOfTwoTextureAtlas(int, int, GraphicsFormat, FilterMode, string, bool) | Create a new texture atlas, must have power of two size. |
Properties
| Name | Description |
|---|---|
| mipPadding | Used mipmap padding size in power of two. |
Methods
| Name | Description |
|---|---|
| AllocateTexture(CommandBuffer, ref Vector4, Texture, int, int, int) | Allocate space from the atlas for a texture and copy texture contents into the atlas. |
| BlitOctahedralTexture(CommandBuffer, Vector4, Texture, Vector4, bool, int) | Blit octahedral texture into the atlas with padding. |
| BlitOctahedralTextureMultiply(CommandBuffer, Vector4, Texture, Vector4, bool, int) | Blit octahedral texture into the atlas with padding. |
| BlitTexture(CommandBuffer, Vector4, Texture, Vector4, bool, int) | Blit texture into the atlas with padding. |
| BlitTextureMultiply(CommandBuffer, Vector4, Texture, Vector4, bool, int) | Blit texture into the atlas with padding and blending. |
| GetApproxCacheSizeInByte(int, int, bool, GraphicsFormat) | Get cache size in bytes. |
| GetMaxCacheSizeForWeightInByte(int, bool, GraphicsFormat) | Compute the max size of a power of two atlas for a given size in byte (weight). |
| GetPayloadScaleOffset(Texture, in Vector4) | Get location of the actual texture data without padding in the atlas. |
| GetPayloadScaleOffset(in Vector2, in Vector2, in Vector4) | Get location of the actual texture data without padding in the atlas. |
| RelayoutEntries() | 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 |
| ReserveSpace(Texture) | Reserves the space on the texture atlas |
| ReserveSpace(Texture, int, int) | Reserves the space on the texture atlas |
| ReserveSpace(Texture, Texture, int, int) | Reserves the space on the texture atlas |
| ResetRequestedTexture() | Clear tracked requested textures. |