Skip to content

Commit 7a09a25

Browse files
authored
Merge pull request #11150 from sawickiap/patch-1
Fix shader_functions.rst - description of pack/unpack for Snorm/Unorm functions
2 parents 90fc3e7 + 0e4fee7 commit 7a09a25

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tutorials/shaders/shader_reference/shader_functions.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3188,16 +3188,16 @@ floating-point numbers.
31883188
| | vec2 | | :ref:`unpackHalf2x16<shader_func_unpackHalf2x16>`\ (\ uint v) | |
31893189
+------------+------------------------------------------------------------------------+--------------------------------------------------------------+
31903190
| | uint | | :ref:`packUnorm2x16<shader_func_packUnorm2x16>`\ (\ vec2 v) | Convert two normalized (range 0..1) 32-bit floats |
3191-
| | vec2 | | :ref:`unpackUnorm2x16<shader_func_unpackUnorm2x16>`\ (\ uint v) | to 16-bit floats and pack them. |
3191+
| | vec2 | | :ref:`unpackUnorm2x16<shader_func_unpackUnorm2x16>`\ (\ uint v) | to 16-bit unsigned ints and pack them. |
31923192
+------------+------------------------------------------------------------------------+--------------------------------------------------------------+
31933193
| | uint | | :ref:`packSnorm2x16<shader_func_packSnorm2x16>`\ (\ vec2 v) | Convert two signed normalized (range -1..1) 32-bit floats |
3194-
| | vec2 | | :ref:`unpackSnorm2x16<shader_func_unpackSnorm2x16>`\ (\ uint v) | to 16-bit floats and pack them. |
3194+
| | vec2 | | :ref:`unpackSnorm2x16<shader_func_unpackSnorm2x16>`\ (\ uint v) | to 16-bit signed ints and pack them. |
31953195
+------------+------------------------------------------------------------------------+--------------------------------------------------------------+
31963196
| | uint | | :ref:`packUnorm4x8<shader_func_packUnorm4x8>`\ (\ vec4 v) | Convert four normalized (range 0..1) 32-bit floats |
3197-
| | vec4 | | :ref:`unpackUnorm4x8<shader_func_unpackUnorm4x8>`\ (\ uint v) | into 8-bit floats and pack them. |
3197+
| | vec4 | | :ref:`unpackUnorm4x8<shader_func_unpackUnorm4x8>`\ (\ uint v) | into 8-bit unsigned ints and pack them. |
31983198
+------------+------------------------------------------------------------------------+--------------------------------------------------------------+
31993199
| | uint | | :ref:`packSnorm4x8<shader_func_packSnorm4x8>`\ (\ vec4 v) | Convert four signed normalized (range -1..1) 32-bit floats |
3200-
| | vec4 | | :ref:`unpackSnorm4x8<shader_func_unpackSnorm4x8>`\ (\ uint v) | into 8-bit floats and pack them. |
3200+
| | vec4 | | :ref:`unpackSnorm4x8<shader_func_unpackSnorm4x8>`\ (\ uint v) | into 8-bit signed ints and pack them. |
32013201
+------------+------------------------------------------------------------------------+--------------------------------------------------------------+
32023202

32033203
.. rst-class:: classref-descriptions-group

0 commit comments

Comments
 (0)