TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ IsPowerOfTwo()

static bool Terraria.Utils.IsPowerOfTwo ( int x)
inlinestatic

Definition at line 83 of file Utils.cs.

84 {
85 if (x != 0)
86 {
87 return (x & (x - 1)) == 0;
88 }
89 return false;
90 }

Referenced by Terraria.Graphics.Shaders.ScreenShaderData.Apply().

+ Here is the caller graph for this function: