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

Skip to content

Commit d1aebaa

Browse files
committed
Update recreateSwapChain
1 parent a0a8d3f commit d1aebaa

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)