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

Skip to content

Commit 1fd119e

Browse files
authored
Merge pull request #104 from Fill4/master
Updates to Multisampling chapter
2 parents a0a8d3f + d1aebaa commit 1fd119e

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

10_Multisampling.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,18 @@ void cleanupSwapChain() {
161161
}
162162
```
163163

164+
And update the `recreateSwapChain` so that the new color images can be recreated in the correct resolution when the window is resized:
165+
166+
```c++
167+
void recreateSwapChain() {
168+
...
169+
createGraphicsPipeline();
170+
createColorResources();
171+
createDepthResources();
172+
...
173+
}
174+
```
175+
164176
We made it past the initial MSAA setup, now we need to start using these new resources in our graphics pipeline, framebuffer, render pass and see the results!
165177

166178
## Adding new attachments

0 commit comments

Comments
 (0)