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

Skip to content

Commit 399353e

Browse files
committed
Make it a bit more explicit what default value for msaaSamples means.
1 parent f00e844 commit 399353e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

10_Multisampling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ VkSampleCountFlagBits msaaSamples = VK_SAMPLE_COUNT_1_BIT;
2727
...
2828
```
2929

30-
The exact maximum sample count can be extracted from `VkPhysicalDeviceProperties` associated with our selected physical device. We're using a depth buffer, so we have to take into account the sample count for both color and depth - the lower number will be the maximum we can support. If the hardware supports only one sample the final image will look unchanged. Add a function that will fetch this information for us:
30+
By default we'll be using only one sample per pixel which is equivalent to no multisampling, in which case the final image will remain unchanged. The exact maximum number of samples can be extracted from `VkPhysicalDeviceProperties` associated with our selected physical device. We're using a depth buffer, so we have to take into account the sample count for both color and depth - the lower number will be the maximum we can support. Add a function that will fetch this information for us:
3131

3232
```c++
3333
VkSampleCountFlagBits getMaxUsableSampleCount() {

0 commit comments

Comments
 (0)