GS/DX: Specify shader model directly instead of via feature level#14344
Open
TheLastRar wants to merge 1 commit intoPCSX2:masterfrom
Open
GS/DX: Specify shader model directly instead of via feature level#14344TheLastRar wants to merge 1 commit intoPCSX2:masterfrom
TheLastRar wants to merge 1 commit intoPCSX2:masterfrom
Conversation
JordanTheToaster
approved these changes
Apr 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description of Changes
Specify the shader model directly, instead of passing a feature level to our compiler wrapper.
Always use SM5.1 on DX12.
Add the ability to compile SM4.1 (currently unused).
Rationale behind Changes
DX12 doesn’t directly tie shader model support to a feature level (A FL11.0 GPU exists that supports SM6.8 and a FL12.0 that only supports 6.5).
it should be slightly easier to add support for newer shader models if so desired.
We where previously compiling SM5.0* for DX12, yet all DX12 devices support SM5.1.
*On Intel Graphics Gen9 or newer, we would already compile for SM5.1.
Our DX11 backend is capable of falling back to FL10.0 (SM4.0).
We currently don't bother checking for FL10.1 support, if we do so in future than we can compile SM4.1 shaders for it.
Suggested Testing Steps
Test DX11/DX12 Backend.
Did you use AI to help find, test, or implement this issue or feature?
Yes (VS2022 AI assisted autocomplete).