llvm / llvm/offload-test-suite

[SPIRV][DirectX] Add variable rate shading

Open
#1,044 0 comments 0 reactions 1 assignee View on GitHub

@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

  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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.