KhronosGroup / KhronosGroup/Vulkan-Portability

VkPipelineMultisampleStateCreateInfo::minSampleShading cannot be supported in Metal

Open
#60 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
45
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Vulkan requires VkPipelineMultisampleStateCreateInfo::minSampleShading to be honoured if sampleShadingEnable is enabled:

If sample shading is enabled, an implementation must invoke the fragment shader at least max(VkPipelineMultisampleStateCreateInfo::minSampleShading × VkPipelineMultisampleStateCreateInfo::rasterizationSamples, 1) times per fragment.

Metal does not support forced running of Per-Sample shading unless the shader actually uses Per-Sample built-ins.

I think we need to add a VkPhysicalDevicePortabilitySubsetFeaturesKHR::supportMinSampleShading capability, in order to allow an app to query whether the implementation honours the above Vulkan requirement.

I am not aware of any Vulkan CTS tests that covers this and will fail, but it has appeared as a user request in MoltenVK.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the Vulkan requirement quoted in the issue and the referenced MoltenVK user request. Check existing Vulkan CTS coverage for minSampleShading, then define what capability reporting and conformance coverage would be needed; done means the portability limitation is queryable and validated.

Written by the indexing model from the issue text.

Assessment

Domain
api, computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.