Commit Graph
1203 Commits
Author SHA1 Message Date
Le Philousophe 396d5fb425 BACKENDS: OPENGL: ALlow the use of software scalers with LibRetro 2022-10-17 22:09:35 +02:00
Le Philousophe d398034fe5 BACKENDS: OPENGL: Enable filtering when using scaling shaders 2022-10-16 20:42:54 +02:00
Le Philousophe c257251e8f BACKENDS: OPENGL: Implement FrameCount uniform 2022-10-16 19:43:05 +02:00
Le Philousophe 8047aef666 BACKENDS: OPENGL: Add support for wrap mode in libretro 2022-10-16 19:43:05 +02:00
Le Philousophe 73f48341c0 BACKENDS: OPENGL: Allow to set texture wrapping mode 2022-10-16 19:43:05 +02:00
Le Philousophe e532e33127 BACKENDS: OPENGL: Add aliases support to libretro 2022-10-16 14:06:44 +02:00
Le Philousophe 353239a158 BACKENDS: OPENGL: Reuse existing samplers if possible
This avoids allocating samplers when one with the same texture already
exists.
2022-10-16 14:04:57 +02:00
Le Philousophe 3a31992403 BACKENDS: OPENGL: Really fix Pass# and PassPrev# uniforms 2022-10-16 14:04:39 +02:00
Le Philousophe dc3f4b4f6d BACKENDS: OPENGL: Fix Pass# and PassPrev# uniforms 2022-10-16 11:20:54 +02:00
Le Philousophe c1311ff2b2 BACKENDS: OPENGL: Add support for PassPrev# uniforms
They are not documented but used by some shaders.
They point at previous passes inputs.
2022-10-15 20:48:52 +02:00
Le Philousophe c5d64589b4 BACKENDS: OPENGL: Fix OutputSize uniforms value
The OutputSize value is the size of the FBO target and not the screen
size
2022-10-15 19:09:53 +02:00
Le Philousophe a4f8491c55 BACKENDS: OPENGL: Try to recover from shader error at startup time
Let's just retry without the shader.
2022-10-15 16:45:24 +02:00
Le Philousophe 8e88170c0d BACKENDS: OPENGL: Fix output size computation 2022-10-15 16:02:15 +02:00
Le Philousophe 27971587a5 BACKENDS: OPENGL: Proper unsigned int parsing 2022-10-15 12:31:12 +02:00
Le Philousophe 3c8b58af95 BACKENDS: OPENGL: Don't use glGetTexLevelParameteriv
This function doesn't work in GLES2
2022-10-09 17:25:35 +02:00
Le Philousophe 3a7f2aa1ee BACKENDS: OPENGL: Allow callers to check for texture setSize result 2022-10-09 17:25:35 +02:00
Le Philousophe 518b731726 BACKENDS: OPENGL: Add support for loading JPEG textures 2022-10-09 15:59:37 +02:00
Le Philousophe 939570b25a BACKENDS: OPENGL: More tolerant integer parsing 2022-10-09 11:05:13 +02:00
Le Philousophe 1b0942cda2 BACKENDS: OPENGL: Correctly compute default scales 2022-10-09 11:05:13 +02:00
Le Philousophe 51c2f471c3 BACKENDS: OPENGL: Accept different scale types with same scale
This is allowed by libretro
2022-10-09 10:00:21 +02:00
Le Philousophe 0f7fa00c9b BACKENDS: OPENGL: Fix parsing of scale_type
When scale_type was not specified, its default value was used for X and
Y instead of doing nothing
2022-10-09 09:45:03 +02:00
Le Philousophe d379af1fc0 BACKENDS: OPENGL: Properly remove comments
Before that comments at the end of a line were not stripped
2022-10-09 01:32:54 +02:00
Le Philousophe 131acc39ea BACKENDS: OPENGL: Add compatibility shims when needed 2022-10-09 01:32:54 +02:00
Le Philousophe f96b71100c OPENGL: Implement parameters as uniforms
This avoids bugs in some shaders where parameter names are reused in the
shader code.
2022-10-08 23:40:27 +02:00
Le Philousophe af680aeecc OPENGL: Check that textures can be set up at load time 2022-10-08 23:39:18 +02:00
Le Philousophe 04d8265e9c OPENGL: load shaders more like original libretro 2022-10-08 23:39:18 +02:00
Eugene Sandulenko e7df36a30c OPENGL: Remove obsolete comment 2022-10-08 23:39:18 +02:00
Cameron Cawley 347870e6ea OPENGLSDL: Remove _ignoreLoadVideoMode
It doesn't work properly with shaders.
2022-10-08 23:39:18 +02:00
Cameron Cawley ebc79b24bb OPENGL: Added missing USE_FORCED_GLES check 2022-10-08 23:39:18 +02:00
Cameron Cawley aa21e7226a OPENGL: Refactored filtering support 2022-10-08 23:39:18 +02:00
Eugene Sandulenko 9167451b59 OPENGL: More robust error reporting 2022-10-08 23:39:18 +02:00
Eugene Sandulenko 885f710da3 OPENGL: Ignore comment lines in .glslp shader preset files 2022-10-08 23:39:18 +02:00
Eugene Sandulenko da08d87257 OPENGL: Better check if shaders are supported 2022-10-08 23:39:18 +02:00
Eugene Sandulenko ea578eff8a OPENGL: Fix license headers in the new files 2022-10-08 23:39:18 +02:00
Eugene Sandulenko 3578052175 GUI: Enable filtering on platforms where shaders are not supported 2022-10-08 23:39:18 +02:00
Eugene Sandulenko cc0740685f OPENGL: Disable kFeatureFilteringMode because it conflicts with shaders 2022-10-08 23:39:18 +02:00
Eugene Sandulenko 6d3eb64398 OPENGL: Do not error() on shader compilation failure 2022-10-08 23:39:18 +02:00
Eugene Sandulenko b67c4c0047 OPENGL: Gracefully restore previous graphics mode on shader failure 2022-10-08 23:39:18 +02:00
Eugene Sandulenko 1ac8fde03f JANITORIAL: Whitespace fixes 2022-10-08 23:39:18 +02:00
Eugene Sandulenko 8d61963716 OPENGL: Return error when shader did not work 2022-10-08 23:39:18 +02:00
Cameron Cawley f6e071e99a OPENGL: Handle LibRetro shaders containing version directives 2022-10-08 23:39:18 +02:00
Cameron Cawley 1b2a73c62a OPENGL: Implement selecting shaders from the GUI 2022-10-08 23:39:18 +02:00
Cameron Cawley 79fff69231 COMMON: Use Common::String for OSystem::setShader 2022-10-08 23:39:18 +02:00
Cameron Cawley 64c359b5cb GUI: Replace the options for selecting shaders 2022-10-08 23:39:18 +02:00
Cameron Cawley c5705561b0 OPENGL: Add compatibility checks for LibRetro shader support 2022-10-08 23:39:18 +02:00
Cameron Cawley cdbb0fa32f OPENGL: Better path lookup and error handling 2022-10-08 23:39:18 +02:00
Cameron Cawley 5e4aaf5757 OPENGL: Render the screen and cursor to a target before applying shaders 2022-10-08 23:39:18 +02:00
Cameron Cawley 851b17affa OPENGL: Fix compilation after recent changes 2022-10-08 23:39:18 +02:00
Lothar Serra Mari 93b46ec40d BACKENDS: OPENGL: Resolve merge conflicts 2022-10-08 23:39:18 +02:00
Lothar Serra Mari 133341adf5 BACKENDS: OPENGL: Fix shader prefix path 2022-10-08 23:39:18 +02:00