コード例 #1
0
 private static void Internal_Create([Writable] Texture2DArray mono, int w, int h, int d, TextureFormat format, bool mipmap, bool linear)
 {
     if (!Texture2DArray.Internal_CreateImpl(mono, w, h, d, format, mipmap, linear))
     {
         throw new UnityException("Failed to create 2D array texture because of invalid parameters.");
     }
 }
コード例 #2
0
        private static void Internal_Create([Writable] Texture2DArray mono, int w, int h, int d, int mipCount, GraphicsFormat format, TextureCreationFlags flags)
        {
            bool flag = !Texture2DArray.Internal_CreateImpl(mono, w, h, d, mipCount, format, flags);

            if (flag)
            {
                throw new UnityException("Failed to create 2D array texture because of invalid parameters.");
            }
        }