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

Skip to content

Commit f7363e9

Browse files
committed
Clarify that DestroyDebugReportCallbackEXT must be a static method
1 parent 0abd602 commit f7363e9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

03_Drawing_a_triangle/00_Setup/02_Validation_layers.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,8 @@ void DestroyDebugReportCallbackEXT(VkInstance instance, VkDebugReportCallbackEXT
342342
}
343343
```
344344
345-
We can then specify it as cleanup function:
345+
Make sure that this function is either a static class function or a function
346+
outside the class. We can then specify it as cleanup function:
346347
347348
```c++
348349
VDeleter<VkDebugReportCallbackEXT> callback{instance, DestroyDebugReportCallbackEXT};

0 commit comments

Comments
 (0)