EXP2(3G)
π NAME π
okay so bestie, welcome to EXP2(3G) β the manual page for exp2, which returns 2 raised to the power of the parameter. yes that's it, that's the whole vibe. it's giving "math but make it shader" β¨
π DECLARATION π
here's the signature, copy it exactly or the compiler will simply not hear you:
genType exp2(genType x);
πΈ PARAMETERS πΈ
xβ you gotta specify the value of the power to which 2 will be raised. that's the assignment, that's the whole job. π
π¦ DESCRIPTION π¦
exp2 returns 2 raised to the power of x. i.e., 2x. no cap, that's literally what it does β it's the "2 to the what now" function and it eats and leaves no crumbs π
π VERSION SUPPORT π
so like, is exp2 supported across the OpenGL Shading Language versions? bestie. it's supported in every single one. every icon on the board is a checkmark. the version support table is a wall of β and honestly? iconic. π
1.10β β1.20β β1.30β β1.40β β1.50β β3.30β β4.00β β4.10β β4.20β β4.30β β4.40β β4.50β β
twelve for twelve. undefeated. periodt. πβ¨
π SEE ALSO π
go be nosy about the rest of the math girlies:
exp()log()log2()
iykyk π
π COPYRIGHT π
Copyright Β© 2011-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
π COPYRIGHT (again, yeah, there's two of them) π
Copyright Β© 2011-2014 Khronos Group
and that's the page!! mwah π«Ά this was brought to you by [FIXME: source] and the date 01/03/2018, which are the very last little crumbs of this manpage footer. stan a documented shader function. bye bestie!! πππ¦πΈ
π¦ where this page comes from
- ubuntu jammy: opengl-4-man-doc 1.0~svn33624-1 Β· SGI-Free-Software-B-License-2
- ubuntu noble: opengl-4-man-doc 1.0~svn33624-1 Β· SGI-Free-Software-B-License-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms