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

Skip to content

Commit 55c78e1

Browse files
committed
Fix typos
1 parent 44d6bd1 commit 55c78e1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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
@@ -280,7 +280,7 @@ we want the new color to be blended with the old color based on its opacity. The
280280
`finalColor` should then be computed as follows:
281281

282282
```c++
283-
finalColor.rgb = newAlpha * newColor + (1 - newAlpha) * newColor;
283+
finalColor.rgb = newAlpha * newColor + (1 - newAlpha) * oldColor;
284284
finalColor.a = newAlpha.a;
285285
```
286286

04_Vertex_buffers/01_Vertex_buffer_creation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ The `flags` parameter is used to configure sparse buffer memory, which is not
7171
relevant right now. We'll leave it at the default value of `0`.
7272

7373
We can now create the buffer with `vkCreateBuffer`. Define a class member to
74-
hold the buffer handle and call it `VkBuffer`.
74+
hold the buffer handle and call it `vertexBuffer`.
7575

7676
```c++
7777
VDeleter<VkBuffer> vertexBuffer{device, vkDestroyBuffer};

0 commit comments

Comments
 (0)