libretro / libretro/RetroArch

Shaders not working with D3D12 driver

Open
#14,112 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

gpu api: d3d12 shaders shaders: slang
Dominant language
C
Stars
14.1k
Forks
2.2k
Avg merge
7h 35m
Merged PRs (30d)
51

Description

First and foremost consider this:

  • Only RetroArch bugs should be filed here. Not core bugs or game bugs
  • This is not a forum or a help section, this is strictly developer oriented

Description

Some of the slang shaders don't appear to be working with the d3d12 driver, mainly deinterlacing, dithering, everything under misc, and ntsc, though many others appear very differently compared to the other drivers. The only exceptions appear to be many of the crt shaders (excluding royale) and most image adjustment shaders.

Other drivers are working as expected.

Expected behavior

Shaders to work the same as the other drivers (eg. d3d11, glcore, vulkan).

Actual behavior

Content appears the same as not loading any shaders at all.

Steps to reproduce the bug
  1. Set driver to d3d12
  2. Load any content in any core
  3. Apply a shader
Bisect Results

Has been an issue since earliest version d3d12 was added, up to the latest nighly and stable releases.

Environment information

Windows 11
Nvidia RTX 3090

Contributor guide

Open the contributing guide

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

Reproduce the issue with the D3D12 driver on Windows 11 using the listed shader categories, then compare their output with D3D11, GLCore, and Vulkan. Done means deinterlacing, dithering, misc, NTSC, and other affected shaders visibly work rather than appearing unloaded.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.