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."); } }
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."); } }