You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor tutorial phrasing and modernize Vulkan instance creation.
Updated tutorial text to use inclusive language ("we" instead of "I") and improved readability. Modernized Vulkan instance creation using RAII and cleaner initialization code in compliance with up-to-date Vulkan best practices.
You can add this code to the `createInstance` function if you'd like to provide some details about the Vulkan support.
201
-
As a challenge, try to create a function that checks if all the extensions returned by `glfwGetRequiredInstanceExtensions` are included in the supported extensions list.
202
-
203
-
== Cleaning up
204
-
205
-
The `VkInstance` should be only destroyed right before the program exits.
206
-
It can be destroyed in `cleanup` with the `vkDestroyInstance` function:
207
-
208
-
[,c++]
209
-
----
210
-
void cleanup() {
211
-
vkDestroyInstance(instance, nullptr);
212
-
----
213
-
214
200
You can add this code to the `createInstance` function if you'd like to provide
215
201
some details about the Vulkan support. As a challenge, try to create a function
0 commit comments