docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PowerOfTwoTextureAtlas

    Texture atlas with rectangular power of two size.

    Inheritance
    object
    Texture2DAtlas
    PowerOfTwoTextureAtlas
    Inherited Members
    Texture2DAtlas.maxMipLevelPadding
    Texture2DAtlas.AtlasTexture
    Texture2DAtlas.Release()
    Texture2DAtlas.ResetAllocator()
    Texture2DAtlas.ClearTarget(CommandBuffer)
    Texture2DAtlas.BlitCubeTexture2D(CommandBuffer, Vector4, Texture, bool, int)
    Texture2DAtlas.AllocateTextureWithoutBlit(Texture, int, int, ref Vector4)
    Texture2DAtlas.AllocateTextureWithoutBlit(int, int, int, ref Vector4)
    Texture2DAtlas.GetTextureID(Texture)
    Texture2DAtlas.GetTextureID(Texture, Texture)
    Texture2DAtlas.IsCached(out Vector4, Texture, Texture)
    Texture2DAtlas.IsCached(out Vector4, Texture)
    Texture2DAtlas.IsCached(out Vector4, int)
    Texture2DAtlas.NeedsUpdate(Texture, bool)
    Texture2DAtlas.NeedsUpdate(Texture, Texture, bool)
    Texture2DAtlas.AddTexture(CommandBuffer, ref Vector4, Texture)
    Texture2DAtlas.UpdateTexture(CommandBuffer, Texture, Texture, ref Vector4, Vector4, bool, bool)
    Texture2DAtlas.UpdateTexture(CommandBuffer, Texture, ref Vector4, bool, bool)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)