Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shaders: Add error message for asciiart shader if shader_subgroup is missing. #11703

Merged
merged 2 commits into from Mar 30, 2023

Conversation

degasus
Copy link
Member

@degasus degasus commented Mar 29, 2023

This extension is currently required to get good performance.
So instead of maybe triggering a GPU hang, let's just disable the shader and show a warning instead.

Sadly our postprocessing framework does not support reporting a warning, so the way to display the warning is a bit hacky.
But this is an ascii-art shader, we already have a font in the shader, so let's use it.

With no modification.
…missing.

This extension is currently required to get good performance.
So instead of maybe triggering a GPU hang, let's just disable the shader and show a warning instead.

Sadly our postprocessing framework does not support reporting a warning, so the way to display the warning is a bit hacky.
But this is an ascii-art shader, we already have a font in the shader, so let's use it.
@lioncash lioncash merged commit 806ea59 into dolphin-emu:master Mar 30, 2023
14 checks passed
#endif
}

// "Error: The AsciiArt shader requires the missing GPU extention KHR_shader_subgroup."
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you mean "extension" instead? "Extention" sounds like a typo...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants