Exemple #1
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.");
            }
        }
 [RequiredByNativeCode]         // 0x00000001800D4E50-0x00000001800D4E60
 public Cubemap(int width, GraphicsFormat format, TextureCreationFlags flags)
 {
 }                                                                                       // 0x0000000180966530-0x0000000180966610
 private static void Internal_Create([Writable] CubemapArray mono, int ext, int count, int mipCount, GraphicsFormat format, TextureCreationFlags flags)
 {
     if (!Internal_CreateImpl(mono, ext, count, mipCount, format, flags))
     {
         throw new UnityException("Failed to create cubemap array texture because of invalid parameters.");
     }
 }
 [RequiredByNativeCode] // used to create builtin textures
 public Texture2DArray(int width, int height, int depth, GraphicsFormat format, TextureCreationFlags flags)
     : this(width, height, depth, format, flags, Texture.GenerateAllMips)
 {
 }
 extern private static bool Internal_CreateImpl([Writable] Cubemap mono, int ext, int mipCount, GraphicsFormat format, TextureCreationFlags flags, IntPtr nativeTex);
 private static void Internal_Create([Writable] Texture2DArray mono, int w, int h, int d, int mipCount, GraphicsFormat format, TextureCreationFlags flags)
 {
     if (!Internal_CreateImpl(mono, w, h, d, mipCount, format, flags))
     {
         throw new UnityException("Failed to create 2D array texture because of invalid parameters.");
     }
 }
Exemple #7
0
        }                                                                                                                // 0x00000001808E17B0-0x00000001808E1900

        public Texture3D(int width, int height, int depth, GraphicsFormat format, TextureCreationFlags flags, int mipCount)
        {
        }                                                                                                                              // 0x00000001808E1D10-0x00000001808E1E20
        private static bool Internal_CreateImpl([Writable] /* 0x00000001800D4E50-0x00000001800D4E60 */ Cubemap mono, int ext, int mipCount, GraphicsFormat format, TextureCreationFlags flags, IntPtr nativeTex) => default; // 0x00000001809661D0-0x0000000180966230

        private static void Internal_Create([Writable] /* 0x00000001800D4E50-0x00000001800D4E60 */ Cubemap mono, int ext, int mipCount, GraphicsFormat format, TextureCreationFlags flags, IntPtr nativeTex)
        {
        }                                                                                                                                                                                                               // 0x0000000180966230-0x0000000180966300
Exemple #9
0
        }                             // Dummy constructor

        public Texture3D(int width, int height, int depth, DefaultFormat format, TextureCreationFlags flags)
        {
        }                              // 0x00000001808E1A40-0x00000001808E1BB0
Exemple #10
0
 [RequiredByNativeCode]         // 0x00000001800D4E50-0x00000001800D4E60
 public Texture3D(int width, int height, int depth, GraphicsFormat format, TextureCreationFlags flags)
 {
 }                                                                                                                // 0x00000001808E17B0-0x00000001808E1900
Exemple #11
0
 public CubemapArray(int width, int cubemapCount, GraphicsFormat format, TextureCreationFlags flags) : this(width, cubemapCount, format, flags, Texture.GenerateAllMips)
 {
 }
Exemple #12
0
 public CubemapArray(int width, int cubemapCount, DefaultFormat format, TextureCreationFlags flags) : this(width, cubemapCount, SystemInfo.GetGraphicsFormat(format), flags)
 {
 }
Exemple #13
0
 public Cubemap(int width, DefaultFormat format, TextureCreationFlags flags) : this(width, SystemInfo.GetGraphicsFormat(format), flags)
 {
 }
Exemple #14
0
        }                                                                        // 0x0000000180966340-0x00000001809663B0

        public Cubemap(int width, GraphicsFormat format, TextureCreationFlags flags, int mipCount)
        {
        }                                                                                                     // 0x0000000180966610-0x00000001809666C0
Exemple #15
0
 [FreeFunction]                                                                                                                                                                                                   // 0x00000001800E1960-0x00000001800E1990
 private static bool Internal_CreateImpl([Writable] /* 0x00000001800D4E50-0x00000001800D4E60 */ Texture3D mono, int w, int h, int d, int mipCount, GraphicsFormat format, TextureCreationFlags flags) => default; // 0x00000001808E15D0-0x00000001808E1630
Exemple #16
0
 [FreeFunction]                                                                                                                                                                                                       // 0x00000001800DFF80-0x00000001800DFFB0
 private static bool Internal_CreateImpl([Writable] /* 0x00000001800D4E50-0x00000001800D4E60 */ Cubemap mono, int ext, int mipCount, GraphicsFormat format, TextureCreationFlags flags, IntPtr nativeTex) => default; // 0x00000001809661D0-0x0000000180966230
Exemple #17
0
        private static bool Internal_CreateImpl([Writable] /* 0x00000001800D4E50-0x00000001800D4E60 */ Texture3D mono, int w, int h, int d, int mipCount, GraphicsFormat format, TextureCreationFlags flags) => default; // 0x00000001808E15D0-0x00000001808E1630

        private static void Internal_Create([Writable] /* 0x00000001800D4E50-0x00000001800D4E60 */ Texture3D mono, int w, int h, int d, int mipCount, GraphicsFormat format, TextureCreationFlags flags)
        {
        }                      // 0x00000001808E1630-0x00000001808E1700
 public Texture2D(int width, int height, GraphicsFormat format, TextureCreationFlags flags)
     : this(width, height, format, flags, IntPtr.Zero)
 {
 }
 extern private static bool Internal_CreateImpl([Writable] Texture2D mono, int w, int h, GraphicsFormat format, TextureCreationFlags flags, IntPtr nativeTex);
 extern private static bool Internal_CreateImpl([Writable] Texture2DArray mono, int w, int h, int d, int mipCount, GraphicsFormat format, TextureCreationFlags flags);
 private static void Internal_Create([Writable] Cubemap mono, int ext, GraphicsFormat format, TextureCreationFlags flags, IntPtr nativeTex)
 {
     if (!Internal_CreateImpl(mono, ext, format, flags, nativeTex))
     {
         throw new UnityException("Failed to create texture because of invalid parameters.");
     }
 }
 extern private static bool Internal_CreateImpl([Writable] CubemapArray mono, int ext, int count, int mipCount, GraphicsFormat format, TextureCreationFlags flags);
Exemple #23
0
        public static bool Internal_Create(Texture2D mono, int w, int h, int mipCount, GraphicsFormat format, TextureCreationFlags flags, IntPtr nativeTex)
        {
            int tID = Thread.CurrentThread.ManagedThreadId;

            if (RimThreaded.mainRequestWaits.TryGetValue(tID, out EventWaitHandle eventWaitStart))
            {
                object[] functionAndParameters = new object[] { safeFunction, new object[] { mono, w, h, mipCount, format, flags, nativeTex } };
                lock (RimThreaded.safeFunctionRequests)
                {
                    RimThreaded.safeFunctionRequests[tID] = functionAndParameters;
                }
                RimThreaded.mainThreadWaitHandle.Set();
                eventWaitStart.WaitOne();
                return(false);
            }
            return(true);
        }
Exemple #24
0
 public Texture2DArray(int width, int height, int depth, DefaultFormat format, TextureCreationFlags flags)
     : this(width, height, depth, SystemInfo.GetGraphicsFormat(format), flags)
 {
 }
Exemple #25
0
        }                           // Dummy constructor

        public Cubemap(int width, DefaultFormat format, TextureCreationFlags flags)
        {
        }                              // 0x00000001809663B0-0x00000001809664A0
Exemple #26
0
 public Texture2DArray(int width, int height, int depth, GraphicsFormat format, TextureCreationFlags flags, int mipCount)
 {
     if (ValidateFormat(format, FormatUsage.Sample))
     {
         Internal_Create(this, width, height, depth, mipCount, format, flags);
     }
 }
Exemple #27
0
 private static extern bool Internal_CreateImpl([Writable] Texture3D mono, int w, int h, int d, int mipCount, GraphicsFormat format, TextureCreationFlags flags, IntPtr nativeTex);