From 4a2de1e17a4e4a4c4c999400cdc5d8c496d1a05b Mon Sep 17 00:00:00 2001 From: chokomancarr Date: Thu, 21 Sep 2023 21:49:01 +0800 Subject: [PATCH] fix incorrect GL format code for 16 bit float formats For FORMAT_XXXH half-precision format constants, the description uses GL_XXX32F, which is incorrect. This fixes it to GL_XXX16F to align with the intended precision. --- doc/classes/Image.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/classes/Image.xml b/doc/classes/Image.xml index 2782e877a95..fabe6fe4bd7 100644 --- a/doc/classes/Image.xml +++ b/doc/classes/Image.xml @@ -619,16 +619,16 @@ OpenGL texture format [code]GL_RGBA32F[/code] where there are four components, each a 32-bit floating-point values. - OpenGL texture format [code]GL_R32F[/code] where there's one component, a 16-bit "half-precision" floating-point value. + OpenGL texture format [code]GL_R16F[/code] where there's one component, a 16-bit "half-precision" floating-point value. - OpenGL texture format [code]GL_RG32F[/code] where there are two components, each a 16-bit "half-precision" floating-point value. + OpenGL texture format [code]GL_RG16F[/code] where there are two components, each a 16-bit "half-precision" floating-point value. - OpenGL texture format [code]GL_RGB32F[/code] where there are three components, each a 16-bit "half-precision" floating-point value. + OpenGL texture format [code]GL_RGB16F[/code] where there are three components, each a 16-bit "half-precision" floating-point value. - OpenGL texture format [code]GL_RGBA32F[/code] where there are four components, each a 16-bit "half-precision" floating-point value. + OpenGL texture format [code]GL_RGBA16F[/code] where there are four components, each a 16-bit "half-precision" floating-point value. A special OpenGL texture format where the three color components have 9 bits of precision and all three share a single 5-bit exponent.