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

Skip to content

Commit 95b9f54

Browse files
committed
Add note on renamed srgb color space enum
1 parent 776e939 commit 95b9f54

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

03_Drawing_a_triangle/01_Presentation/01_Swap_chain.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ Each `VkSurfaceFormatKHR` entry contains `format` and `colorSpace` member. The
218218
`VK_FORMAT_B8G8R8A8_UNORM` means that we store the B, G, R and alpha channels in
219219
that order with an 8 bit unsigned integer for a total of 32 bits per pixel. The
220220
`colorSpace` member indicates if the SRGB color space is supported or not using
221-
the `VK_COLOR_SPACE_SRGB_NONLINEAR_KHR` flag.
221+
the `VK_COLOR_SPACE_SRGB_NONLINEAR_KHR` flag. Note that this flag used to be
222+
called `VK_COLORSPACE_SRGB_NONLINEAR_KHR` in old versions of the specification.
222223
223224
For the color space we'll use SRGB if it is available, because it [results in more accurate perceived colors](http://stackoverflow.com/questions/12524623/).
224225
Working directly with SRGB colors is a little bit challenging, so we'll use

0 commit comments

Comments
 (0)