From 976bc0907959cc9442b0fe27df04f07ff0c7d876 Mon Sep 17 00:00:00 2001 From: SirLynix Date: Thu, 16 Jun 2022 19:51:01 +0200 Subject: [PATCH] Fix compile_shader task when project hasn't been configured --- xmake/actions/compile_shaders.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xmake/actions/compile_shaders.lua b/xmake/actions/compile_shaders.lua index b03e80bfb..ec04858c7 100644 --- a/xmake/actions/compile_shaders.lua +++ b/xmake/actions/compile_shaders.lua @@ -12,7 +12,11 @@ task("compile-shaders") on_run(function () import("core.base.option") + import("core.base.task") import("core.project.project") + + task.run("config", {}, {disable_dump = true}) + local nzsl = path.join(project.required_package("nzsl"):installdir(), "bin", "nzslc") local envs