Skip to content

GS/DX: Specify shader model directly instead of via feature level#14344

Open
TheLastRar wants to merge 1 commit intoPCSX2:masterfrom
TheLastRar:D3D12-SM51
Open

GS/DX: Specify shader model directly instead of via feature level#14344
TheLastRar wants to merge 1 commit intoPCSX2:masterfrom
TheLastRar:D3D12-SM51

Conversation

@TheLastRar
Copy link
Copy Markdown
Contributor

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).

Copy link
Copy Markdown
Contributor

@SternXD SternXD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

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