Commit Graph

71 Commits

Author SHA1 Message Date
57088ebb82 Shaders: Add error message for asciiart shader if shader_subgroup is 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.
2023-03-29 23:12:50 +02:00
4780953172 Shaders: Clang-format
With no modification.
2023-03-29 23:12:50 +02:00
196c684ac1 Vulkan: Enable subgroupShuffle.
It is used as workaround for the missing subgroupBroadcastDynamicId flag on SPIR-V < 1.5.
2023-03-24 21:53:23 +01:00
1571098783 Shaders: Reintroduce the old Asci-Art shader.
Dolphin had a nice but horrible slow asci art shader.
Beside being slow, it used the font from dolphin's old OSD implementation.
So it was also broken after the VideoCommon redesign.

This patch reintroduces the (almost) identical method for the asci art generation.
However with many improvements:
* Inline definition of the font, so no external dependency any more
* Optimized performance by partial unrolling with CSE'ing some memory loads
* Shader subgroup instructions, so 32 times faster on desktop CPUs on Vulkan + OGL (no D3D support)
* Option to select character size by internal or window resultion
* Dropped the last row of pixels of each character (only modification of the outcome)
2023-03-24 21:43:19 +01:00
23b504a952 Merge pull request #10722 from TryTwo/PR_Integer_Shader
Post-processing: Add integer scaling shader
2023-02-05 00:48:47 +01:00
1e7efb2354 Add sharp bilinear postprocessing shader. 2023-02-04 20:48:01 +01:00
d9ea1e44be Add post-processing option that can do Integer Scaling. 2022-06-14 07:42:29 -07:00
fa55e52fff Merge pull request #9917 from TheHarmonicRealm/master
Fix GBR and GRB post-processing effects
2021-07-20 09:38:14 +01:00
0be80bcb18 Fix swap_RGB_GRB.gls post-processing shader 2021-07-19 13:21:41 -07:00
ac32996d11 Fix swap_RGB_GBR.gls post-processing shader 2021-07-19 13:20:58 -07:00
2344624b08 PostProcessing: fix lens distortion shader for HLSL 2021-07-18 22:49:36 +01:00
eb4ed72a96 PostProcessing: fix lens distortion shader
This has been broken since b44a0980eb.
2021-07-18 04:10:02 +01:00
G
62bd79e70d Remove AsciiArt shader
This shader has been rendered nonfunctional due to the removal of the function SampleFontLocation, which was never implemented in VideoCommon. The last reference to SampleFontLocation was located in the OGL video backend. It was removed in this commit: f039149198 (diff-24125a6c968a8aca9cadd977d4b9d68f), where many functions were moved to video common, among other things.

This shader should be removed so it does not confuse users with the error that it causes. Alternatively, it could be rewritten so it is compatible with modern versions of Dolphin. I am not familiar with GLSL, so this is currently beyond my skill set.
2020-10-05 21:44:56 -07:00
afb6468bdb Fix dubois anaglyph shaders on D3D11 2019-07-25 22:04:53 -07:00
c513bb5309 VideoCommon: Implement passive stereoscopic 3D 2019-05-04 22:58:00 -05:00
32a5bb2fb4 Replace dead 'oreillynet' url with Wayback Machine archive 2018-12-04 14:41:21 -05:00
5fc51b45a0 code adjustments in response to review 2016-09-13 10:52:14 -05:00
a6b3237211 lens distortion post-processing shader 2016-09-12 11:07:44 -05:00
0fdd3ecdfe add shaders for anaglyph Amber-Blue and Green-Magenta 2015-06-02 20:47:56 +02:00
262c3b19ec PostProcessing: Add support for user-supplied anaglyph shaders.
There are lots of different anaglyph glasses out there and there may be even more creative uses for stereoscopic post-processing shaders.
2015-01-25 22:07:03 +01:00
940c628eb7 Shaders: Remove fake stereoscopic shaders.
We have actual stereoscopy now, no need to pretend.
2014-11-23 14:27:39 +01:00
32fe37d834 Change all the post processing shaders to the new system.
Removes the README.txt file in favour of a new wiki page I'm going to generate.
2014-08-13 01:05:15 -05:00
bc9ef95643 Support Sampler binding in the shader.
In the cases where we support the binding layout keyword, use it for more than binding UBO location.
This changes it so it is supported for samplers as well.

Instances when this is enabled is if a device supports GL_ARB_shading_language_420pack, or if it supports GLES 3.10.
2014-07-18 17:04:03 -05:00
7853766a6b Update emboss.glsl 2014-05-21 17:09:26 -04:00
24027b78e3 Update emboss.glsl 2014-05-21 16:45:32 -04:00
12a9c5f0ce Update fire2.glsl 2014-05-21 16:43:55 -04:00
f5579d9816 Update cool1.glsl 2014-05-21 16:42:18 -04:00
cd6aa34979 Update acidmetal.glsl 2014-05-21 16:38:25 -04:00
c3864db4b3 Update 32bit.glsl 2014-05-21 16:36:46 -04:00
41f13f9c99 Update primarycolors.glsl 2014-05-21 16:29:25 -04:00
c2e5e030b0 Update asciiart.glsl 2014-05-21 15:15:48 -04:00
28c1e6c6ca Update 16bit.glsl
Sorry. Made a little copy and paste error.
2014-05-21 15:14:56 -04:00
9b022e023b Update firewater.glsl 2014-05-21 14:55:45 -04:00
dd91d86095 Update 16bit.glsl 2014-05-21 14:53:48 -04:00
d2a74bf294 Update chrismas.glsl 2014-05-21 14:52:46 -04:00
fd1d0e6e1e Update posterize.glsl 2014-05-21 14:51:25 -04:00
d8fe09e9b1 Update nightvision2scanlines.glsl 2014-05-21 00:11:11 -04:00
1fe8d1ae16 Update nightvision2.glsl 2014-05-21 00:10:07 -04:00
753a937289 Update auto_toon2.glsl 2014-05-21 00:06:38 -04:00
f59c7f25da Update asciiart.glsl 2014-05-21 00:05:13 -04:00
d13e9c5aa8 Update stereoscopic2.glsl 2014-05-21 00:00:50 -04:00
e43df47cd1 Update stereoscopic.glsl 2014-05-21 00:00:18 -04:00
349a7b59ea Update sketchy.glsl 2014-05-20 23:58:33 -04:00
92d0af2d18 Update sepia.glsl 2014-05-20 23:58:02 -04:00
980b5f8fbb Update primarycolors.glsl 2014-05-20 23:57:31 -04:00
0ef3a7f233 Update posterize2.glsl 2014-05-20 23:55:59 -04:00
8ddad21abc Update posterize.glsl 2014-05-20 23:54:52 -04:00
4c1ef9ba80 Update nightvision2scanlines.glsl 2014-05-20 23:54:11 -04:00
548d872843 Update nightvision2.glsl 2014-05-20 23:53:37 -04:00
d5fea64953 Update nightvision.glsl 2014-05-20 23:53:13 -04:00