[vlc-devel] [PATCH 1/2] vout: vulkan: add support for custom user shaders
Steve Lhomme
robux4 at ycbcr.xyz
Mon Jun 22 08:10:30 CEST 2020
On 2020-06-20 12:41, Niklas Haas wrote:
> From: Niklas Haas <git at haasn.xyz>
> @@ -377,6 +438,11 @@ vlc_module_begin ()
> add_shortcut ("vulkan", "vk")
> add_module ("vk", "vulkan", NULL, VK_TEXT, PROVIDER_LONGTEXT)
>
> +#if PL_API_VER >= 58
> + set_section("Custom shaders", NULL)
> + add_loadfile("user-shader-file", NULL, USER_SHADER_FILE_TEXT, USER_SHADER_FILE_LONGTEXT)
I don't think it's a written rule but module variables should be
prefixed with the module name. So in this case "vulkan-shader-file"
should do. We already have "direct3d9-shader-file".
More information about the vlc-devel
mailing list