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

Skip to content

Commit 84036f9

Browse files
committed
Remove final VDeleter references
1 parent a349ff1 commit 84036f9

3 files changed

Lines changed: 3 additions & 8 deletions

File tree

03_Drawing_a_triangle/01_Presentation/00_Window_surface.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ allocators and the variable for the surface handle to be stored in.
6666
```c++
6767
auto CreateWin32SurfaceKHR = (PFN_vkCreateWin32SurfaceKHR) vkGetInstanceProcAddr(instance, "vkCreateWin32SurfaceKHR");
6868

69-
if (!CreateWin32SurfaceKHR || CreateWin32SurfaceKHR(instance, &createInfo,
70-
nullptr, surface.replace()) != VK_SUCCESS) {
69+
if (!CreateWin32SurfaceKHR || CreateWin32SurfaceKHR(instance, &createInfo, nullptr, &surface) != VK_SUCCESS) {
7170
throw std::runtime_error("failed to create window surface!");
7271
}
7372
```

03_Drawing_a_triangle/01_Presentation/02_Image_views.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,6 @@ void cleanup() {
119119
}
120120
```
121121

122-
That's it, now run the program to verify that the image views are created
123-
properly and destroyed properly. Checking the latter requires enabling the
124-
validation layers, or putting a print statement in the deleter function.
125-
126122
An image view is sufficient to start using an image as a texture, but it's not
127123
quite ready to be used as a render target just yet. That requires one more step
128124
of indirection, known as a framebuffer. But first we'll have to set up the

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Changing code across chapters
2525
-----------------------------
2626

2727
It is sometimes necessary to change code that is reused across many chapters,
28-
for example the `VDeleter` class or a function like `createBuffer`. If you make
29-
such a change, then you should update the code files using the following steps:
28+
for example a function like `createBuffer`. If you make such a change, then you
29+
should update the code files using the following steps:
3030

3131
* Update any chapters that reference the modified code.
3232
* Make a copy of the first file that uses it and modify the code there, e.g.

0 commit comments

Comments
 (0)