Skip to main content

ceil_pow2

Function ceil_pow2 

Source
pub fn ceil_pow2(n: u32) -> u32
Expand description

Round n up to the nearest power of 2. 0 and 1 both return 1. Used to derive a GPU.7 GridUpload::pool_dims from a non-pow2 chunks_dims.