llvm / llvm/offload-test-suite
[SPIRV][DirectX] Add variable rate shading
@Icohedron is already working on this.
Since Aug 19, 2026.
- Dominant language
- C++
- Stars
- 18
- Forks
- 39
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 40
Description
Required for testing of `SV_ShadingRate`.
Current status: No support, but it can be tested through regular buffer readback.
_Note_: The scope here is tier to allow specification at the pipeline and vertex shader output. We don't need to consider screen-space image. See [here](https://microsoft.github.io/DirectX-Specs/d3d/VariableRateShading.html) for more details.
AC:
- [ ] Add query for the required feature support (`D3D12_VARIABLE_SHADING_RATE_TIER`, `VK_KHR_fragment_shading_rate`)
- [ ] Allow YAML test configuration to specify the coarseness (`1x1`, `1x2`, ... , `4x4`)
- [ ] DX: Ensure `RSSetShadingRate` is called with explicit configuration
- [ ] SPV: Ensure `VkPipelineFragmentShadingRateStateCreateInfoKHR` is configured
- [ ] Add testing of functionality using the semantic
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.