Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MVKDevice: Advertise VK_FORMAT_A2B10G10R10_UNORM_PACK32 as a surface format. #939

Merged
merged 1 commit into from
Jun 30, 2020

Conversation

cdavis5e
Copy link
Collaborator

The corresponding Metal format is now documented as supported for
CAMetalLayer, confirming my findings in #673.

Only support the 10-10-10-2 formats on macOS. iOS and tvOS instead have
extended-range formats, which unfortunately have no Vulkan equivalents.
I've added them anyway for completeness. I suppose if Vulkan ever does
get these formats, we'll then be ready to expose them as surface
formats.

…format.

The corresponding Metal format is now documented as supported for
`CAMetalLayer`, confirming my findings in KhronosGroup#673.

Only support the 10-10-10-2 formats on macOS. iOS and tvOS instead have
extended-range formats, which unfortunately have no Vulkan equivalents.
I've added them anyway for completeness. I suppose if Vulkan ever does
get these formats, we'll then be ready to expose them as surface
formats.
@cdavis5e cdavis5e mentioned this pull request Jun 25, 2020
@tmm1
Copy link
Contributor

tmm1 commented Jun 25, 2020

Looks good!

How about MTLPixelFormatRGBA16Unorm (i.e. VK_FORMAT_R16G16B16A16_UNORM). Is that supported as a surface format anywhere (doesn't appear to be on tvOS atleast).

@cdavis5e
Copy link
Collaborator Author

How about MTLPixelFormatRGBA16Unorm (i.e. VK_FORMAT_R16G16B16A16_UNORM). Is that supported as a surface format anywhere (doesn't appear to be on tvOS atleast).

Nope.

@cdavis5e
Copy link
Collaborator Author

What happened? This time, it didn't even fail to build the external dependencies. It just abruptly aborted with no output after finishing that.

Copy link
Contributor

@billhollings billhollings left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you have a look at the robustness of the way formats are dynamically removed from mtlFormats, please? I've added inline notes.

MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants