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

Skip to content

Commit bfa5b0f

Browse files
committed
Improve wording in instance chapter
1 parent 087de56 commit bfa5b0f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

03_Drawing_a_triangle/00_Setup/01_Instance.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ Vulkan follow is:
9696
If everything went well then the handle to the instance was stored in the
9797
`VkInstance` class member. Nearly all Vulkan functions return a value of type
9898
`VkResult` that is either `VK_SUCCESS` or an error code. To check if the
99-
instance was created successfully, simply add a check for the success value:
99+
instance was created successfully, we don't need to store the result and can
100+
just use a check for the success value instead:
100101

101102
```c++
102103
if (vkCreateInstance(&createInfo, nullptr, &instance) != VK_SUCCESS) {

0 commit comments

Comments
 (0)