Merge branch 'matthiasc/for-master' into 'master'

gsk: Rename resource paths

See merge request GNOME/gtk!3399
This commit is contained in:
Matthias Clasen 2021-04-03 20:14:29 +00:00
commit 8d6c7b81e9
118 changed files with 41 additions and 41 deletions

View File

@ -45,7 +45,7 @@ xml = '''<?xml version='1.0' encoding='UTF-8'?>
'''
for f in gl_source_shaders:
xml += ' <file alias=\'glsl/{0}\'>resources/glsl/{0}</file>\n'.format(os.path.basename(f))
xml += ' <file alias=\'gl/{0}\'>gl/resources/{0}</file>\n'.format(os.path.basename(f))
xml += '\n'
@ -55,12 +55,12 @@ for f in ngl_source_shaders:
xml += '\n'
for f in vulkan_compiled_shaders:
xml += ' <file alias=\'vulkan/{0}\'>resources/vulkan/{0}</file>\n'.format(os.path.basename(f))
xml += ' <file alias=\'vulkan/{0}\'>vulkan/resources/{0}</file>\n'.format(os.path.basename(f))
xml += '\n'
for f in vulkan_shaders:
xml += ' <file alias=\'vulkan/{0}\'>resources/vulkan/{0}</file>\n'.format(os.path.basename(f))
xml += ' <file alias=\'vulkan/{0}\'>vulkan/resources/{0}</file>\n'.format(os.path.basename(f))
xml += '''
</gresource>

View File

@ -3313,27 +3313,27 @@ gsk_gl_renderer_create_programs (GskGLRenderer *self,
const char *resource_path;
const char *name;
} program_definitions[] = {
{ "/org/gtk/libgsk/glsl/blend.glsl", "blend" },
{ "/org/gtk/libgsk/glsl/blit.glsl", "blit" },
{ "/org/gtk/libgsk/glsl/blur.glsl", "blur" },
{ "/org/gtk/libgsk/glsl/border.glsl", "border" },
{ "/org/gtk/libgsk/glsl/color_matrix.glsl", "color matrix" },
{ "/org/gtk/libgsk/glsl/color.glsl", "color" },
{ "/org/gtk/libgsk/glsl/coloring.glsl", "coloring" },
{ "/org/gtk/libgsk/glsl/cross_fade.glsl", "cross fade" },
{ "/org/gtk/libgsk/glsl/inset_shadow.glsl", "inset shadow" },
{ "/org/gtk/libgsk/glsl/linear_gradient.glsl", "linear gradient" },
{ "/org/gtk/libgsk/glsl/radial_gradient.glsl", "radial gradient" },
{ "/org/gtk/libgsk/glsl/conic_gradient.glsl", "conic gradient" },
{ "/org/gtk/libgsk/glsl/outset_shadow.glsl", "outset shadow" },
{ "/org/gtk/libgsk/glsl/repeat.glsl", "repeat" },
{ "/org/gtk/libgsk/glsl/unblurred_outset_shadow.glsl", "unblurred_outset shadow" },
{ "/org/gtk/libgsk/gl/blend.glsl", "blend" },
{ "/org/gtk/libgsk/gl/blit.glsl", "blit" },
{ "/org/gtk/libgsk/gl/blur.glsl", "blur" },
{ "/org/gtk/libgsk/gl/border.glsl", "border" },
{ "/org/gtk/libgsk/gl/color_matrix.glsl", "color matrix" },
{ "/org/gtk/libgsk/gl/color.glsl", "color" },
{ "/org/gtk/libgsk/gl/coloring.glsl", "coloring" },
{ "/org/gtk/libgsk/gl/cross_fade.glsl", "cross fade" },
{ "/org/gtk/libgsk/gl/inset_shadow.glsl", "inset shadow" },
{ "/org/gtk/libgsk/gl/linear_gradient.glsl", "linear gradient" },
{ "/org/gtk/libgsk/gl/radial_gradient.glsl", "radial gradient" },
{ "/org/gtk/libgsk/gl/conic_gradient.glsl", "conic gradient" },
{ "/org/gtk/libgsk/gl/outset_shadow.glsl", "outset shadow" },
{ "/org/gtk/libgsk/gl/repeat.glsl", "repeat" },
{ "/org/gtk/libgsk/gl/unblurred_outset_shadow.glsl", "unblurred_outset shadow" },
};
gsk_gl_shader_builder_init (&shader_builder,
"/org/gtk/libgsk/glsl/preamble.glsl",
"/org/gtk/libgsk/glsl/preamble.vs.glsl",
"/org/gtk/libgsk/glsl/preamble.fs.glsl");
"/org/gtk/libgsk/gl/preamble.glsl",
"/org/gtk/libgsk/gl/preamble.vs.glsl",
"/org/gtk/libgsk/gl/preamble.fs.glsl");
g_assert (G_N_ELEMENTS (program_definitions) == GL_N_PROGRAMS);

View File

@ -1,23 +1,23 @@
gsk_private_gl_shaders = [
'resources/glsl/preamble.glsl',
'resources/glsl/preamble.fs.glsl',
'resources/glsl/preamble.vs.glsl',
'resources/glsl/border.glsl',
'resources/glsl/blit.glsl',
'resources/glsl/coloring.glsl',
'resources/glsl/color.glsl',
'resources/glsl/linear_gradient.glsl',
'resources/glsl/radial_gradient.glsl',
'resources/glsl/conic_gradient.glsl',
'resources/glsl/color_matrix.glsl',
'resources/glsl/blur.glsl',
'resources/glsl/inset_shadow.glsl',
'resources/glsl/outset_shadow.glsl',
'resources/glsl/unblurred_outset_shadow.glsl',
'resources/glsl/cross_fade.glsl',
'resources/glsl/blend.glsl',
'resources/glsl/repeat.glsl',
'resources/glsl/custom.glsl',
'gl/resources/preamble.glsl',
'gl/resources/preamble.fs.glsl',
'gl/resources/preamble.vs.glsl',
'gl/resources/border.glsl',
'gl/resources/blit.glsl',
'gl/resources/coloring.glsl',
'gl/resources/color.glsl',
'gl/resources/linear_gradient.glsl',
'gl/resources/radial_gradient.glsl',
'gl/resources/conic_gradient.glsl',
'gl/resources/color_matrix.glsl',
'gl/resources/blur.glsl',
'gl/resources/inset_shadow.glsl',
'gl/resources/outset_shadow.glsl',
'gl/resources/unblurred_outset_shadow.glsl',
'gl/resources/cross_fade.glsl',
'gl/resources/blend.glsl',
'gl/resources/repeat.glsl',
'gl/resources/custom.glsl',
]
gsk_private_ngl_shaders = [
@ -158,7 +158,7 @@ if have_vulkan
'vulkan/gskvulkanshader.c',
])
subdir('resources/vulkan')
subdir('vulkan/resources')
endif # have_vulkan
if get_variable('broadway_enabled')

Some files were not shown because too many files have changed in this diff Show More