0.9.6
Functions

Functions

template<typename genIUType >
GLM_FUNC_DECL genIUType log2 (genIUType x)
 

Detailed Description

Allow to perform bit operations on integer values.

<glm/gtc/integer.hpp> need to be included to use these functionalities.

Function Documentation

GLM_FUNC_DECL genIUType glm::log2 ( genIUType  x)

Returns the log2 of x.

Can be reliably using to compute mipmap count from the texture size. From GLM_GTC_integer extension.