@@ -13,21 +13,9 @@ namespace UnityEditor
1313 [ NativeHeader ( "Runtime/Graphics/Format.h" ) ]
1414 internal static class TextureUtil
1515 {
16- [ Obsolete ( "GetStorageMemorySize has been deprecated since it is limited to 2GB. Please use GetStorageMemorySizeLong() instead." ) ]
17- public static int GetStorageMemorySize ( Texture t )
18- {
19- return ( int ) GetStorageMemorySizeLong ( t ) ;
20- }
21-
2216 [ FreeFunction ]
2317 public static extern long GetStorageMemorySizeLong ( [ NotNull ( "NullExceptionObject" ) ] Texture t ) ;
2418
25- [ Obsolete ( "GetRuntimeMemorySize has been deprecated since it is limited to 2GB. Please use GetRuntimeMemorySizeLong() instead." ) ]
26- public static int GetRuntimeMemorySize ( Texture t )
27- {
28- return ( int ) GetRuntimeMemorySizeLong ( t ) ;
29- }
30-
3119 [ FreeFunction ]
3220 public static extern long GetRuntimeMemorySizeLong ( [ NotNull ( "NullExceptionObject" ) ] Texture t ) ;
3321
@@ -55,33 +43,41 @@ public static int GetRuntimeMemorySize(Texture t)
5543 [ FreeFunction ]
5644 public static extern bool IsValidTextureFormat ( TextureFormat format ) ;
5745
46+ [ Obsolete ( "IsCompressedTextureFormat has been moved to GraphicsFormatUtility.IsCompressedFormat(TextureFormat)" ) ]
5847 [ FreeFunction ( "IsAnyCompressedTextureFormat" ) ]
5948 public static extern bool IsCompressedTextureFormat ( TextureFormat format ) ;
6049
50+ [ Obsolete ( "IsCompressedCrunchTextureFormat has been moved to GraphicsFormatUtility.IsCrunchFormat(TextureFormat)" ) ]
6151 [ FreeFunction ( "IsCompressedCrunchTextureFormat" ) ]
6252 public static extern bool IsCompressedCrunchTextureFormat ( TextureFormat format ) ;
6353
6454 [ FreeFunction ]
6555 public static extern TextureFormat GetTextureFormat ( [ NotNull ( "NullExceptionObject" ) ] Texture texture ) ;
6656
57+ [ Obsolete ( "IsAlphaOnlyTextureFormat has been moved to GraphicsFormatUtility.IsAlphaOnlyFormat(TextureFormat)" ) ]
6758 [ FreeFunction ]
6859 public static extern bool IsAlphaOnlyTextureFormat ( TextureFormat format ) ;
6960
61+ [ Obsolete ( "IsHDRFormat has been moved to GraphicsFormatUtility.IsHDRFormat(TextureFormat)" ) ]
7062 [ FreeFunction ]
7163 public static extern bool IsHDRFormat ( TextureFormat format ) ;
7264
65+ [ Obsolete ( "IsHDRGraphicsFormat has been moved to GraphicsFormatUtility.IsHDRFormat(GraphicsFormat)" ) ]
7366 [ FreeFunction ( "IsHDRFormat" ) ]
7467 public static extern bool IsHDRGraphicsFormat ( GraphicsFormat format ) ;
7568
69+ [ Obsolete ( "HasAlphaTextureFormat has been moved to GraphicsFormatUtility.HasAlphaChannel(TextureFormat)" ) ]
7670 [ FreeFunction ]
7771 public static extern bool HasAlphaTextureFormat ( TextureFormat format ) ;
7872
73+ [ Obsolete ( "GetTextureFormatString has been moved to GraphicsFormatUtility.GetFormatString(TextureFormat)" ) ]
7974 [ FreeFunction ]
8075 public static extern string GetTextureFormatString ( TextureFormat format ) ;
8176
8277 [ FreeFunction ]
8378 public static extern string GetTextureColorSpaceString ( [ NotNull ( "NullExceptionObject" ) ] Texture texture ) ;
8479
80+ [ Obsolete ( "ConvertToAlphaTextureFormat has been moved to GraphicsFormatUtility.ConvertToAlphaFormat(TextureFormat)" ) ]
8581 [ FreeFunction ]
8682 public static extern TextureFormat ConvertToAlphaTextureFormat ( TextureFormat format ) ;
8783
0 commit comments