Click or drag to resize

MathfNearestPo2 Method

Returns the nearest larger power of 2 for the integer `value`.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static int NearestPo2(
	int value
)

Parameters

value
Type: SystemInt32
The input value.

Return Value

Type: Int32
The nearest larger power of 2.
See Also