Language:
Discover
By Skill Level
By Category

FGenericPlatformMath::RoundUpToPowerOfTwo

Choose your OS:

Syntax

static uint32 RoundUpToPowerOfTwo
(
    uint32 Arg
)

Remarks

Rounds the given number up to the next highest power of two.

Returns

Rounds the given number up to the next highest power of two.

References

Module

Core

Header

Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h