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

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