TRANSPOSE(3G)
π TRANSPOSE (3G) π
okay bestie, we're in the 3G corner of the manual (that's the OpenGL Shading Language zone, iykyk) and today's main character is transpose. let's get into it β¨
πΈ NAME πΈ
transpose β calculate the transpose of a matrix
π¦ DECLARATION π¦
here's every single glow-up in the family, float and double, square and not-square, no cap:
mat2 transpose(mat2 m);
mat3 transpose(mat3 m);
mat4 transpose(mat4 m);
mat2x3 transpose(mat3x2 m);
mat2x4 transpose(mat4x2 m);
mat3x2 transpose(mat2x3 m);
mat3x4 transpose(mat4x3 m);
mat4x2 transpose(mat2x4 m);
mat4x3 transpose(mat3x4 m);
dmat2 transpose(dmat2 m);
dmat3 transpose(dmat3 m);
dmat4 transpose(dmat4 m);
dmat2x3 transpose(dmat3x2 m);
dmat2x4 transpose(dmat4x2 m);
dmat3x2 transpose(dmat2x3 m);
dmat3x4 transpose(dmat4x3 m);
dmat4x2 transpose(dmat2x4 m);
dmat4x3 transpose(dmat3x4 m);
π PARAMETERS π
mβ the matrix you want transposed. that's it, that's the whole vibe. you hand it a matrix, it does the thing π
β¨ DESCRIPTION β¨
transpose returns the transpose of the matrix m. literally the most chill function in the whole spec, she just flips it and hands it back π«Ά
π VERSION SUPPORT π
okay so this is where it gets a lil detail-heavy but we're not skipping ANYTHING, so here's the whole grid broken out. the column you'd be reading is which OpenGL Shading Language version supports it:
transpose (float) π
1.10β-(not here yet, she's still getting ready)1.20β β1.30β β1.40β β1.50β β3.30β β4.00β β4.10β β4.20β β4.30β β4.40β β4.50β β
transpose (double) π
1.10β-1.20β-1.30β-1.40β-1.50β-3.30β-4.00β β4.10β β4.20β β4.30β β4.40β β4.50β β
so like. the float version showed up in1.20and never left. the double version lowkey ghosted us until4.00, and then it was here to STAY. iconic behavior honestly π
π§ SEE ALSO π§
determinant()inverse()
π· 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 (yes bestie, again π·)
Copyright Β© 2011-2014 Khronos Group
and that's the whole page, fr fr π source situation: [FIXME: source], dated 01/03/2018, filed under TRANSPOSE(3G). go transpose something pretty, you absolute queen πβ¨
π¦ 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