Skip to content

GS/DX12: Compile shaders to Shader Model 6.5 - #14938

Open
TheLastRar wants to merge 4 commits into
PCSX2:masterfrom
TheLastRar:D3D12-DXC
Open

TheLastRar wants to merge 4 commits into
PCSX2:masterfrom
TheLastRar:D3D12-DXC

Conversation

@TheLastRar

Copy link
Copy Markdown
Contributor

Description of Changes

Uses the DirectX shader compiler (DXC) to compile shaders.

Rationale behind Changes

Newer shader models could potentially allow new or improved features to be used with DX12.

The librashader (#14433) and (currently) the Uber shader PR (#14737) both already bundle the DirectX shader compiler.

Initially, only support Shader Model 6.5 (in addition to 5.1 with FXC), as, with the exception of QC 8cx 3, all SM6.0 capable devices support at least shader model 6.5.

While we could compile DXC on the CI, I've opted to extract from the nuget package for CI speed.

Suggested Testing Steps

Test the DX12 backend
Test CAS on various backends

Did you use AI to help find, test, or implement this issue or feature?

No

@mirh

mirh commented Sep 12, 2026

Copy link
Copy Markdown

FWIW while I was researching UE5 dx12 compatibility (which afaik is also sm6.5+) I found out skylake graphics should be missing it too, because unlike the newer gen9 models its driver was left stuck to wddm 2.1.

@JordanTheToaster

Copy link
Copy Markdown
Member

FWIW while I was researching UE5 dx12 compatibility (which afaik is also sm6.5+) I found out skylake graphics should be missing it too, because unlike the newer gen9 models its driver was left stuck to wddm 2.1.

Then it will use SM5.1 as you can see in the changes.

@Mrlinkwii Mrlinkwii added this to the Release 2.10 milestone Sep 12, 2026
Comment thread pcsx2/GS/Renderers/DX11/D3D.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants