Skip to content

Commit e82a835

Browse files
Fixed a couple minor errors
1 parent b5165df commit e82a835

File tree

1 file changed

+2
-2
lines changed
  • blog/2024/2024-10-17-glsl-development-made-shrimple

1 file changed

+2
-2
lines changed

blog/2024/2024-10-17-glsl-development-made-shrimple/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ My only requirement for a GLSL linter is that it prevents me from being surprise
2727
- Compiler flags are supplied as a list in the extension settings.
2828
- I use `-C` (show multiple errors), `--glsl-version 460` (automatically sets the shader `#version`), and `--P #extension GL_GOOGLE_include_directive` (so I don't have to write that in every file).
2929
- OpenGL users should add `--target-env opengl` for it to use OpenGL semantics.
30-
- Each "part" of an argument separated by a space needs to be provided as a separate item of the list:
30+
- Each "part" of an argument separated by a space needs to be provided as a separate item of the list.
3131
- File extensions can be associated with specific shader stages in the extension settings. By default, it will detect common file extensions like .vert, .frag, and .comp. It also understands .frag.glsl, etc. automatically.
3232
- Supports my convoluted `#include` hierarchies.
3333
- [Error Lens](https://marketplace.visualstudio.com/items?itemName=usernamehw.errorlens): makes errors easier to read. Not specifically related to GLSL, but still useful to have.
@@ -59,7 +59,7 @@ Here is an example of arguments provided to GLSL Lint:
5959

6060
OpenGL GLSL doesn't support `#include` (GL_ARB_shading_language_include barely counts), so we must find an external way to support it. There are a few viable ways to gain support for `#include` in your shaders if you're using OpenGL, in increasing effort:
6161

62-
- [stb_include.h] provides a simple interface for expanding includes in shader sources without evaluating other preprocessor directives (which means it expands `#include` directives in inactive preprocessor blocks).
62+
- [stb_include.h](https://github.com/nothings/stb/blob/master/stb_include.h) provides a simple interface for expanding includes in shader sources without evaluating other preprocessor directives (which means it expands `#include` directives in inactive preprocessor blocks).
6363
- [My fork of it](https://github.com/nothings/stb/pull/1336) fixes the const-incorrect API, which can annoyingly require `const_cast` to use in C++.
6464
- [My super secret forbidden fork of it](https://github.com/JuanDiegoMontoya/Frogfood/blob/main/vendor/stb_include.h) fixes nested includes and some other minor issues, but introduces a C++17 standard library include (`<filesystem>`) for implementer convenience.
6565
- [ARB_shading_language_include](https://registry.khronos.org/OpenGL/extensions/ARB/ARB_shading_language_include.txt) extends OpenGL by letting the user define a virtual filesystem that will be searched when include directives are found.

0 commit comments

Comments
 (0)