Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spacing of built-in in shaders #5321

Merged
merged 1 commit into from
Oct 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions tutorials/shaders/shader_reference/shading_language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1021,40 +1021,47 @@ is used, it can be scalar or vector.
| vec_type **fwidth** (vec_type p) | Sum of absolute derivative in ``x`` and ``y`` |
+---------------------------------------------------------------------------------------+---------------------------------------------------------------------+
| uint **packHalf2x16** (vec2 v) | Convert two 32-bit floating-point numbers into 16-bit |
| vec2 **unpackHalf2x16** (uint v) | and pack them into a 32-bit unsigned integer and vice-versa. |
| | and pack them into a 32-bit unsigned integer and vice-versa. |
| vec2 **unpackHalf2x16** (uint v) | |
+---------------------------------------------------------------------------------------+---------------------------------------------------------------------+
| uint **packUnorm2x16** (vec2 v) | Convert two 32-bit floating-point numbers (clamped |
| vec2 **unpackUnorm2x16** (uint v) | within 0..1 range) into 16-bit and pack them |
| | into a 32-bit unsigned integer and vice-versa. |
| | within 0..1 range) into 16-bit and pack them |
| vec2 **unpackUnorm2x16** (uint v) | into a 32-bit unsigned integer and vice-versa. |
+---------------------------------------------------------------------------------------+---------------------------------------------------------------------+
| uint **packSnorm2x16** (vec2 v) | Convert two 32-bit floating-point numbers (clamped |
| vec2 **unpackSnorm2x16** (uint v) | within -1..1 range) into 16-bit and pack them |
| | into a 32-bit unsigned integer and vice-versa. |
| | within -1..1 range) into 16-bit and pack them |
| vec2 **unpackSnorm2x16** (uint v) | into a 32-bit unsigned integer and vice-versa. |
+---------------------------------------------------------------------------------------+---------------------------------------------------------------------+
| uint **packUnorm4x8** (vec4 v) | Convert four 32-bit floating-point numbers (clamped |
| vec4 **unpackUnorm4x8** (uint v) | within 0..1 range) into 8-bit and pack them |
| | into a 32-bit unsigned integer and vice-versa. |
| | within 0..1 range) into 8-bit and pack them |
| vec4 **unpackUnorm4x8** (uint v) | into a 32-bit unsigned integer and vice-versa. |
+---------------------------------------------------------------------------------------+---------------------------------------------------------------------+
| uint **packSnorm4x8** (vec4 v) | Convert four 32-bit floating-point numbers (clamped |
| vec4 **unpackSnorm4x8** (uint v) | within -1..1 range) into 8-bit and pack them |
| | into a 32-bit unsigned integer and vice-versa. |
| | within -1..1 range) into 8-bit and pack them |
| vec4 **unpackSnorm4x8** (uint v) | into a 32-bit unsigned integer and vice-versa. |
+---------------------------------------------------------------------------------------+---------------------------------------------------------------------+
| ivec_type **bitfieldExtract** (ivec_type value, int offset, int bits) | Extracts a range of bits from an integer. |
| | |
| uvec_type **bitfieldExtract** (uvec_type value, int offset, int bits) | |
+---------------------------------------------------------------------------------------+---------------------------------------------------------------------+
| ivec_type **bitfieldInsert** (ivec_type base, ivec_type insert, int offset, int bits) | Insert a range of bits into an integer. |
| | |
| uvec_type **bitfieldInsert** (uvec_type base, uvec_type insert, int offset, int bits) | |
+---------------------------------------------------------------------------------------+---------------------------------------------------------------------+
| ivec_type **bitfieldReverse** (ivec_type value) | Reverse the order of bits in an integer. |
| | |
| uvec_type **bitfieldReverse** (uvec_type value) | |
+---------------------------------------------------------------------------------------+---------------------------------------------------------------------+
| ivec_type **bitCount** (ivec_type value) | Counts the number of 1 bits in an integer. |
| | |
| uvec_type **bitCount** (uvec_type value) | |
+---------------------------------------------------------------------------------------+---------------------------------------------------------------------+
| ivec_type **findLSB** (ivec_type value) | Find the index of the least significant bit set to 1 in an integer. |
| | |
| uvec_type **findLSB** (uvec_type value) | |
+---------------------------------------------------------------------------------------+---------------------------------------------------------------------+
| ivec_type **findMSB** (ivec_type value) | Find the index of the most significant bit set to 1 in an integer. |
| | |
| uvec_type **findMSB** (uvec_type value) | |
+---------------------------------------------------------------------------------------+---------------------------------------------------------------------+
| uvec_type **uaddCarry** (uvec_type x, uvec_type y, out uvec_type carry) | Add unsigned integers and generate carry. |
Expand Down