Commit Graph

36 Commits

Author SHA1 Message Date
twinaphex
77d0b0053f (D3D PC) Build fix and deopaque things 2014-06-17 20:42:38 +02:00
Themaister
f34b175a0f De-opaque core_info. 2014-06-17 17:28:39 +02:00
Themaister
76292f873a De-opaque shader_parse. 2014-06-17 16:41:06 +02:00
twinaphex
6ae820eea8 (360) Build fixes - due to same 'cannot convert parameter 1 from
'void *' to 'gfx_shader *'
2014-06-01 02:38:01 +02:00
twinaphex
ac4377ad23 (Android) Get rid of the warning in gfx/shader_parse.c 2014-05-28 04:10:34 +02:00
Themaister
b0ad6674f4 Rebase fix. 2014-05-26 18:49:06 +02:00
Themaister
ca3d4416d3 Can save parameters. Can tweak on RGUI presets and current shader. 2014-05-26 18:48:29 +02:00
Themaister
dab36b5870 Support aliased pass names from CGP/GLSLP. 2014-05-26 18:47:49 +02:00
Themaister
5c3e2f9e0a Parse params from cgp. 2014-05-26 18:47:48 +02:00
Themaister
4722b6af75 Experiment with shader parameters. 2014-05-26 18:47:48 +02:00
Themaister
c7eee695ce Remove references to XML shaders. 2014-05-25 23:40:14 +02:00
Themaister
25e56d8db0 Kill support for XML shaders.
Long overdue ...
2014-05-25 17:16:45 +02:00
Themaister
7559ca12ef Refactor sRGB FBO handling a bit. 2014-05-11 19:35:54 +02:00
Themaister
bc8bb13050 Add mipmapping and sRGB FBO support. 2014-05-11 13:39:04 +02:00
TroggleMonkey
c15d188ecf Refactored duplicate Cg/GLSL LUT texture loading code into shader_common.c.
Fixed a bug where "Apply Shader Changes" in RGUI saved/set the wrong
texture filter for LUT textures.
Unofficially extended Cg shader spec with an LUT mipmap option:
To mipmap LUT "foo," add 'foo_mipmap = "true"' to your .cgp/.glslp file.
Mipmapping is currently implemented for the OpenGL driver only.
2014-05-08 13:41:04 -04:00
twinaphex
0a15a17d44 Update years on all license headers 2014-01-01 01:50:59 +01:00
twinaphex
d2c87e3039 Convert most C99-style for loop initial declarations to C89-compliant
ones
2013-10-22 15:08:17 +02:00
Themaister
551fd27204 Add support for wrapping modes.
Not terribly useful atm due to POT, but at least it's there.
Has some use mostly with LUTs ... NPOT + REPEAT requires extension on
GLES2 at least.
2013-08-16 00:30:54 +02:00
Themaister
9aab315045 Save lut paths correctly in shader_parse. 2013-04-16 22:22:26 +02:00
Themaister
2c8ddeb109 Add gfx_shader_resolve_relative.
Translates relative paths (from CGP) into absolute paths,
suitable for loading files, and saving cgp some place else.
2013-04-15 23:48:25 +02:00
Themaister
1e9e703375 Add support for CGP/GLSL.
Serves to unify shader support across the board
on platforms which cannot use Cg (EGL, GLES).
Spec is exactly the same as CGP except that extension is
.glslp. Expected extension on individual shaders are .glsl.
2013-04-10 22:38:45 +02:00
Themaister
b09237e190 Remove unused variables. 2013-04-08 09:21:14 +02:00
twinaphex
db0ff2a212 (RARCH_CONSOLE) Build fixes 2013-04-07 18:03:25 +02:00
Themaister
f3ca37cb2b Always use NULL shader is shader_enable is false.
RARCH_CONSOLE sets true as default. Update the config
if shader_enable is false.
2013-04-07 13:11:27 +02:00
Themaister
50c184042e Rewrite XML shader loading.
Use gfx_shader abstraction.
2013-04-07 12:41:05 +02:00
Themaister
fea6d5b55d Don't split twice. 2013-04-07 10:27:58 +02:00
twinaphex
d4e8a3c682 (Android) Build fix 2013-04-07 04:17:44 +02:00
Themaister
4a8b3599bc Refactor out cg_shader_path, xml_shader_path.
Make shader paths uniform in shader_path.
2013-04-07 01:46:06 +02:00
twinaphex
9a4ddfd2e0 Forgot a conditional check in shader_cg.c before doing freeing of
menu_cg_program - some other cleanups to do with setting stock
shaders in Cg
2013-04-06 16:29:00 +02:00
Themaister
e649db253c Reintroduce CGP refactor.
Fix several issues that caused crashes.
2013-04-06 12:00:10 +02:00
twinaphex
0340f2043c Revert "Major refactor to CGP parsing."
This reverts commit 211e17250c.
2013-04-06 04:37:17 +02:00
twinaphex
8396f71004 Revert "Don't dump frame_count_mod unless needed."
This reverts commit eeddfea425.
2013-04-06 04:37:05 +02:00
twinaphex
e889f5c548 Revert "Remove redundant line."
This reverts commit 2a09f52cc8.
2013-04-06 03:53:07 +02:00
Themaister
2a09f52cc8 Remove redundant line. 2013-04-06 00:26:14 +02:00
Themaister
eeddfea425 Don't dump frame_count_mod unless needed. 2013-04-01 15:40:11 +02:00
Themaister
211e17250c Major refactor to CGP parsing.
Adds saving functionality for CGPs.
2013-04-01 15:34:02 +02:00