glsl: move shader into a separate directory

Only keep glsl_source.h for clarity
This commit is contained in:
Gregory Hainaut 2015-04-17 23:17:30 +02:00
parent 55fdf26898
commit 16e6d0d305
9 changed files with 6 additions and 2 deletions

View File

@ -37,14 +37,17 @@ eval {
########################
# GSdx
########################
my @gsdx_res = qw/convert.glsl interlace.glsl merge.glsl shadeboost.glsl tfx_vgs.glsl tfx_fs_all.glsl fxaa.fx/;
my $gsdx_path = File::Spec->catdir(dirname(abs_path($0)), "..", "plugins", "GSdx", "res");
my $gsdx_out = File::Spec->catdir($gsdx_path, "glsl_source.h");
# Just a hack to reuse glsl2h function easily
$gsdx_path = File::Spec->catdir(dirname(abs_path($0)), "..", "plugins", "GSdx", "res", "glsl");
my @tfx_res = qw/tfx_fs.glsl tfx_fs_subroutine.glsl/;
my $tfx_all = File::Spec->catdir($gsdx_path, "tfx_fs_all.glsl");
my @gsdx_res = qw/convert.glsl interlace.glsl merge.glsl shadeboost.glsl tfx_vgs.glsl tfx_fs_all.glsl fxaa.fx/;
concat($gsdx_path, $tfx_all, \@tfx_res);
my $gsdx_out = File::Spec->catdir($gsdx_path, "glsl_source.h");
glsl2h($gsdx_path, $gsdx_out, \@gsdx_res);
unlink $tfx_all;

View File

@ -0,0 +1 @@
../fxaa.fx