summaryrefslogtreecommitdiff
path: root/tests/servers
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2021-08-08 08:04:20 +0300
committerYuri Roubinsky <chaosus89@gmail.com>2021-12-08 11:34:40 +0300
commit76f6c0849c35ba1a3993b91892a977a5504e6f28 (patch)
treefae61763bf084ab0f5cf1d357d144cf8a3402907 /tests/servers
parentff118d7a88f56bce1f35a0c700521b0c63cec32c (diff)
Make `compile` shader function to use struct instead long parameter list
Diffstat (limited to 'tests/servers')
-rw-r--r--tests/servers/test_shader_lang.cpp7
1 files changed, 6 insertions, 1 deletions
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<String> 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());