Next Power Of Two
PureNextPowerOfTwoReturns the smallest power of two >= Value.
Type: Pure (no side effects)
Category: Fortuna|Math & Numeric
Keywords: math & numeric
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| Value | int | — | Value parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | int | ReturnValue output |
Example Use Cases
Example 1
Round up a render target size to power-of-two.
Example 2
Allocate properly sized buffers.