terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ CalculateMipLevels()

static int Microsoft.Xna.Framework.Graphics.Texture.CalculateMipLevels ( int width,
int height = 0,
int depth = 0 )
inlinestaticpackageinherited

Definition at line 41 of file Texture.cs.

42 {
43 if (!true)
44 {
45 }
46 int num = Math.Max(Math.Max(0, width), height);
47 return 1;
48 }
static byte Max(byte val1, byte val2)
Definition Math.cs:111

References System.Math.Max().

Referenced by Microsoft.Xna.Framework.Graphics.Texture2D.Texture2D().