Skip to content

Commit

Permalink
Revert "docs/glsl: expand GLSL variables documentation"
Browse files Browse the repository at this point in the history
This reverts commit e78c351.
  • Loading branch information
haasn committed Aug 24, 2023
1 parent 2294e6c commit f7fb586
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions docs/glsl.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,16 +404,6 @@ corresponding vector type:
${vecType: comp_mask} tmp = color.${swizzle: comp_mask};
```

Finally, a special type, `const char`, allows embedding constant/literal
strings. These are passed as pointers, and so should be either long-lived or
point to static storage - failure to adhere to this may cause use-after-free or
unnecessary shader recompilations:

```glsl
${const char: sh_float_type(num_comps)} tmp;
tmp = color.${const char: sh_swizzle(comp_mask)};
```

### Macro directives

Lines beginning with `@` are not included in the GLSL as-is, but instead parsed
Expand Down

0 comments on commit f7fb586

Please sign in to comment.