Commit Graph

74 Commits

Author SHA1 Message Date
BearOso 942f4ae971 Fix compilation on win32. 2023-08-25 11:47:29 -05:00
BearOso 1b1325066b Qt port. 2023-08-25 11:47:29 -05:00
BearOso fa20cd2d19 Gtk: Use glad instead of epoxy. 2023-06-01 15:57:03 -05:00
BearOso c9f1e8d79b win32/glsl: Fix crash. 2023-05-01 15:55:59 -05:00
BearOso 92b7fb2e9f shaders: More cleaning. 2023-04-27 16:54:03 -05:00
BearOso ed695f3776 shaders: Clean up some of the OpenGL/slang code. 2023-04-27 16:20:09 -05:00
BearOso f9374e527b Update glslang to bleeding edge. 2023-03-10 17:24:40 -06:00
BearOso 259dfd07ae Vulkan support.
Gtk port support. Breaks other platforms.
2023-03-07 13:58:21 -06:00
BearOso fe5fbb0c80 Gtk: Fix compile with moved deps. 2022-03-18 15:49:54 -05:00
BearOso 88f4d66de8 Move GPU related submodules to external. 2022-03-18 15:49:29 -05:00
BearOso e58c16351c Shaders: Use C++ style struct types.
Supresses non-C-compatible warnings.
2020-08-07 14:59:03 -05:00
BearOso 4973d625ba Shaders: Bump glslang version to latest stable. 2020-08-07 14:51:30 -05:00
BearOso 668f1d967b Shaders: Compile correct GLSL version on legacy.
OpenGL versions below 3.3 will use GLSL version 1.50.
This lets slang shaders work on earlier versions.
2020-08-07 14:08:51 -05:00
BearOso 6e9cfce6f1 Gtk/Shaders: Use embedded copy of glslang. 2020-07-29 18:32:46 -05:00
Brandon Wright 730597e12f Add glslang to shaders directory. 2020-07-28 17:25:27 -05:00
Brandon Wright e17ff69533 Gtk: Switch codebase to gtkmm.
GTK: Remove support for GTK+ 2.0.

GTK 3 is stable and widespread enough now.

GTK: Rearrange headers to eliminate gtk_s9xcore.h

Gtk: Initial gtkmm conversion work.

Gtk: More gtkmm conversion and bug fixing.

Gtk: More gtkmm fixes.

Gtk: More Fixes

OpenGL no longer creates a second window.
Accelerators are fixed.

Gtk: More fixes

Removed GLX context dependency on Gtk.

Gtk: Fix formatting.

Gtk: Remove a #pragma once
2020-07-17 14:48:34 -05:00
Brandon Wright 38bcabff68 Shaders: Use const char * for filenames. 2020-06-30 16:53:52 -05:00
Dan Church c5bd183b2b
Fix GCC unused function/variable warnings 2019-11-14 10:39:02 -06:00
Brandon Wright c393694ed0 Shaders: Don't save "undefined" parameters.
Retroarch doesn't understand these, so presets saved that way aren't
compatible.
2019-09-30 16:02:18 -05:00
Brandon Wright 3c24e57105 GTK: Include copy of default glslang resources. 2019-09-08 15:16:55 -05:00
Brandon Wright 16ca2f95c8 slang: Macro out printuniforms function. 2019-06-23 16:44:03 -05:00
Brandon Wright b6fcbe0f46 Shaders: Use GL_X_MIPMAP_X with mipmap_input. 2019-04-03 18:32:17 -05:00
Brandon Wright 0d137c1224 Save mipmap_input parameter to custom config. 2019-03-24 15:57:59 -05:00
OV2 51e7da6751 Get rid of some more warnings 2019-02-23 15:01:59 +01:00
Brandon Wright 4bd0fd5bf7 GTK: Use system DefaultTBuiltInResource. 2019-02-22 10:57:45 -06:00
Brandon Wright 34970d3e2a Use C++ initialize function. 2019-02-18 18:28:00 -06:00
Brandon Wright 1222518dc4 Update SPIRV-Cross. 2019-02-18 17:22:13 -06:00
Brandon Wright c74b643554 Shaders: MSVC wants this explicit. 2019-01-30 12:53:47 -06:00
Brandon Wright a3149db714 Shaders: Remove 10-bit format identifiers. 2019-01-30 12:50:33 -06:00
Brandon Wright 4942c0560c Formatting. 2019-01-30 10:39:18 -06:00
Brandon Wright fc31f47fc2 Shaders: Scan source code in as few passes as possible.
Improves loading time of crt-royale significantly.
2019-01-30 10:25:19 -06:00
Brandon Wright f825f14a06 Shaders: Try to clean up in case we reuse GLSLShader. 2019-01-29 17:49:40 -06:00
Brandon Wright 3426f146f1 Shaders: Oops. Add scale check to Y, too. 2019-01-27 20:26:56 -06:00
Brandon Wright 9b67d0ad8b Shaders: Use mipmap_input flag. 2019-01-27 20:14:28 -06:00
Brandon Wright 5fc0271330 Shaders: Show errors on file load with name in "". 2019-01-27 19:12:42 -06:00
Brandon Wright 9523f10518 Add license stub. 2019-01-27 18:00:37 -06:00
Brandon Wright 8c8805da40 Slang: Implement feedback support. See below.
This uses a complex workaround because we normally draw the last
pass straight to the screen. Now, only in the event that feedback is
enabled and only if the last pass uses it, we draw to a texture and use
glBlitFramebuffer to draw to the screen (saved_framebuffer) instead.
2019-01-27 17:43:22 -06:00
Brandon Wright 58e1bfadfa Revert "Revert "Slang: Feedback support. Doesn't completely work yet.""
This reverts commit 814323513d.
2019-01-27 16:28:18 -06:00
Brandon Wright 814323513d Revert "Slang: Feedback support. Doesn't completely work yet."
This reverts commit 9536daa09b.
2019-01-26 18:13:32 -06:00
Brandon Wright 9536daa09b Slang: Feedback support. Doesn't completely work yet.
We don't commit the last stage to a texture any more, so feedback can't
read it. That would need to be reverted for this to work.
2019-01-26 17:57:03 -06:00
Brandon Wright d316da9a5c Slang: Opposite of what it was before. This is correct. 2019-01-26 11:52:24 -06:00
Brandon Wright d0bc12522b Slang: This isn't right, actually. 2019-01-25 20:29:16 -06:00
Brandon Wright 65b38ed36b Revert "Shaders: Trim whitespace and comments on preset strings."
This reverts commit 4c3d886dab.
2019-01-25 20:09:06 -06:00
Brandon Wright 02be8ba1f2 Shaders: Add support for grayscale PNGs
GTK+: Fix invalid texture clear.
2019-01-25 20:01:52 -06:00
Brandon Wright 4c3d886dab Shaders: Trim whitespace and comments on preset strings.
Report some file open failures.
2019-01-25 18:51:50 -06:00
Brandon Wright 61f5141bcc Sizes were backwards.
GTK+: Fix .slangp custom extension.
2019-01-25 17:54:55 -06:00
Brandon Wright febae438c6 Add SPIRV-Cross submodule. 2019-01-25 13:39:13 -06:00
Brandon Wright 01f4fed8b5 Slang shader support. 2019-01-25 13:28:24 -06:00
Brandon Wright 0e559cd046 Don't use move on return value. 2019-01-18 15:14:32 -06:00
Brandon Wright 2b5d9af6ca More prep of shader files. 2019-01-13 15:52:32 -06:00