Skip to content

Commit

Permalink
Update GLSL links to point to spec instead of wikipedia
Browse files Browse the repository at this point in the history
Refs #29
  • Loading branch information
SaschaWillems committed Sep 20, 2023
1 parent 7bf80ab commit ba22409
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions en/02_Development_environment.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ If you receive an error message then ensure that your drivers are up-to-date, in
See the xref:00_Introduction.adoc[introduction chapter] for links to drivers from the major vendors.

There is another program in this directory that will be useful for development.
The `glslangValidator.exe` and `glslc.exe` programs will be used to compile shaders from the human-readable https://en.wikipedia.org/wiki/OpenGL_Shading_Language[GLSL] to bytecode.
The `glslangValidator.exe` and `glslc.exe` programs will be used to compile shaders from the human-readable https://registry.khronos.org/OpenGL/specs/gl/GLSLangSpec.4.60.html[GLSL] to bytecode.
We'll cover this in depth in the xref:03_Drawing_a_triangle/02_Graphics_pipeline_basics/01_Shader_modules.adoc[shader modules] chapter.
The `Bin` directory also contains the binaries of the Vulkan loader and the validation layers, while the `Lib` directory contains the libraries.

Expand Down Expand Up @@ -263,7 +263,7 @@ sudo pacman -S glm

=== Shader Compiler

We have just about all we need, except we'll want a program to compile shaders from the human-readable https://en.wikipedia.org/wiki/OpenGL_Shading_Language[GLSL] to bytecode.
We have just about all we need, except we'll want a program to compile shaders from the human-readable https://registry.khronos.org/OpenGL/specs/gl/GLSLangSpec.4.60.html[GLSL] to bytecode.

Two popular shader compilers are Khronos Group's `glslangValidator` and Google's `glslc`.
The latter has a familiar GCC- and Clang-like usage, so we'll go with that: on Ubuntu, download Google's https://github.com/google/shaderc/blob/main/downloads.md[unofficial binaries] and copy `glslc` to your `/usr/local/bin`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:pp: {plus}{plus}

Unlike earlier APIs, shader code in Vulkan has to be specified in a bytecode format as opposed to human-readable syntax like https://en.wikipedia.org/wiki/OpenGL_Shading_Language[GLSL] and https://en.wikipedia.org/wiki/High-Level_Shading_Language[HLSL].
Unlike earlier APIs, shader code in Vulkan has to be specified in a bytecode format as opposed to human-readable syntax like https://registry.khronos.org/OpenGL/specs/gl/GLSLangSpec.4.60.html[GLSL] and https://en.wikipedia.org/wiki/High-Level_Shading_Language[HLSL].
This bytecode format is called https://www.khronos.org/spir[SPIR-V] and is designed to be used with both Vulkan and OpenCL (both Khronos APIs).
It is a format that can be used to write graphics and compute shaders, but we will focus on shaders used in Vulkan's graphics pipelines in this tutorial.

Expand Down

0 comments on commit ba22409

Please sign in to comment.