FGenericPlatformMath::RoundUpToPowerOfTwo

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h

Include

#include "GenericPlatform/GenericPlatformMath.h"

Syntax

static uint32 RoundUpToPowerOfTwo
(
    uint32 Arg
)

Returns

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