From 76f6c0849c35ba1a3993b91892a977a5504e6f28 Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Sun, 8 Aug 2021 08:04:20 +0300 Subject: Make `compile` shader function to use struct instead long parameter list --- tests/servers/test_shader_lang.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/servers') diff --git a/tests/servers/test_shader_lang.cpp b/tests/servers/test_shader_lang.cpp index f4a32c6723..1f8f395e64 100644 --- a/tests/servers/test_shader_lang.cpp +++ b/tests/servers/test_shader_lang.cpp @@ -346,7 +346,12 @@ MainLoop *test() { Set types; types.insert("spatial"); - Error err = sl.compile(code, dt, rm, ShaderLanguage::VaryingFunctionNames(), types, nullptr); + ShaderLanguage::ShaderCompileInfo info; + info.functions = dt; + info.render_modes = rm; + info.shader_types = types; + + Error err = sl.compile(code, info); if (err) { print_line("Error at line: " + rtos(sl.get_error_line()) + ": " + sl.get_error_text()); -- cgit v1.2.3