Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a38fa1d

Browse files
committed
Fix typo and improve shader compiling instructions
1 parent a0c8c46 commit a38fa1d

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

03_Drawing_a_triangle/02_Graphics_pipeline_basics/01_Shader_modules.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ We're now going to compile these into SPIR-V bytecode using the
243243
Create a `compile.bat` file with the following contents:
244244

245245
```bash
246-
C:/VulkanSDK/1.0.17.0/Bin/glslangValidator.exe -V shader.vert
247-
C:/VulkanSDK/1.0.17.0/Bin/glslangValidator.exe -V shader.frag
246+
C:/VulkanSDK/1.0.17.0/Bin32/glslangValidator.exe -V shader.vert
247+
C:/VulkanSDK/1.0.17.0/Bin32/glslangValidator.exe -V shader.frag
248248
pause
249249
```
250250

@@ -269,7 +269,8 @@ These two commands invoke the compiler with the `-V` flag, which tells it to
269269
compile the GLSL source files to SPIR-V bytecode. When you run the compile
270270
script, you'll see that two SPIR-V binaries are created: `vert.spv` and
271271
`frag.spv`. The names are automatically derived from the type of shader, but you
272-
can rename them to anything you like.
272+
can rename them to anything you like. You may get a warning about some missing
273+
features when compiling your shaders, but you can safely ignore that.
273274

274275
If your shader contains a syntax error then the compiler will tell you the line
275276
number and problem, as you would expect. Try leaving out a semicolon for example

03_Drawing_a_triangle/02_Graphics_pipeline_basics/02_Fixed_functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ the viewport, line width and blend constants. If you want to do that, then
333333
you'll have to fill in a `VkPipelineDynamicStateCreateInfo` structure like this:
334334

335335
```c++
336-
VkDynamicState dynamicStates = {
336+
VkDynamicState dynamicStates[] = {
337337
VK_DYNAMIC_STATE_VIEWPORT,
338338
VK_DYNAMIC_STATE_LINE_WIDTH
339339
};

0 commit comments

Comments
 (0)