Skip to content

ImageFormatPropertiesNotSupported in lesson 1 #11

@andreao

Description

@andreao

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions