The lesson 1 code didn't run for me out of the box, producing a ImageFormatPropertiesNotSupported when creating a swap chain. Changing to the second image format in the list from the devices did work as expected.
The list of surface formats obtained from my device are the following:
[(B8G8R8A8_SRGB, SrgbNonLinear), (B8G8R8A8_UNORM, SrgbNonLinear), (R8G8B8A8_SRGB, SrgbNonLinear), (R8G8B8A8_UNORM, SrgbNonLinear), (A2R10G10B10_UNORM_PACK32, SrgbNonLinear), (R5G6B5_UNORM_PACK16, SrgbNonLinear)]
So in other words, (B8G8R8A8_SRGB, SrgbNonLinear) didnt't work, but (B8G8R8A8_UNORM, SrgbNonLinear) did. Perhaps there should be a way in the example to filter out unsupported formats?
For reference:
Using device: Intel(R) Xe Graphics (TGL GT2) (type: IntegratedGpu)
Our physical device supports Vulkan: 1.3.246
The lesson 1 code didn't run for me out of the box, producing a
ImageFormatPropertiesNotSupportedwhen creating a swap chain. Changing to the second image format in the list from the devices did work as expected.The list of surface formats obtained from my device are the following:
So in other words,
(B8G8R8A8_SRGB, SrgbNonLinear)didnt't work, but(B8G8R8A8_UNORM, SrgbNonLinear)did. Perhaps there should be a way in the example to filter out unsupported formats?For reference: