Commit Graph

19 Commits

Author SHA1 Message Date
BearOso f9374e527b Update glslang to bleeding edge. 2023-03-10 17:24:40 -06:00
BearOso fe5fbb0c80 Gtk: Fix compile with moved deps. 2022-03-18 15:49:54 -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 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 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 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 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 61f5141bcc Sizes were backwards.
GTK+: Fix .slangp custom extension.
2019-01-25 17:54:55 -06:00
Brandon Wright 01f4fed8b5 Slang shader support. 2019-01-25 13:28:24 -06:00