void BlitOctahedralTexturePaddingMultiply(CommandBuffer cmd, Vector4 scaleOffset, Texture texture, Vector4 sourceScaleOffset, bool blitMips = true)
        {
            int     mipCount     = GetTextureMipmapCount(texture.width, texture.height);
            int     pixelPadding = GetTexturePadding();
            Vector2 textureSize  = GetPowerOfTwoTextureSize(texture);
            bool    bilinear     = texture.filterMode != FilterMode.Point;

            if (!blitMips)
            {
                mipCount = 1;
            }

            using (new ProfilingScope(cmd, ProfilingSampler.Get(HDProfileId.BlitTextureInPotAtlas)))
            {
                for (int mipLevel = 0; mipLevel < mipCount; mipLevel++)
                {
                    cmd.SetRenderTarget(m_AtlasTexture, mipLevel);
                    HDUtils.BlitOctahedralWithPaddingMultiply(cmd, texture, textureSize, sourceScaleOffset, scaleOffset, mipLevel, bilinear, pixelPadding);
                }
            }
        }