From d94d5415a34e196b17d4881e458b2c49bc0fbdb2 Mon Sep 17 00:00:00 2001 From: SirLynix Date: Fri, 21 Jul 2023 08:57:24 +0200 Subject: [PATCH] Add compute shaders as filegroup on VS --- tests/ComputeParticlesTest/xmake.lua | 7 +++++++ tests/ComputeTest/xmake.lua | 3 +++ 2 files changed, 10 insertions(+) diff --git a/tests/ComputeParticlesTest/xmake.lua b/tests/ComputeParticlesTest/xmake.lua index a1c8d430b..8a08c1611 100644 --- a/tests/ComputeParticlesTest/xmake.lua +++ b/tests/ComputeParticlesTest/xmake.lua @@ -1,3 +1,10 @@ +if is_plat("wasm") then + return -- Compute shaders are not supported with WebGL (but are with WebGPU) +end + target("ComputeParticlesTest") add_deps("NazaraRenderer") add_files("main.cpp") + add_filegroups("shaders", {rootdir = "../../assets/shaders/compute"}) + add_headerfiles("../../assets/shaders/compute/compute_particle_texture.nzsl") + add_headerfiles("../../assets/shaders/compute/compute_particles.nzsl") diff --git a/tests/ComputeTest/xmake.lua b/tests/ComputeTest/xmake.lua index e130b4d2f..08362a5d8 100644 --- a/tests/ComputeTest/xmake.lua +++ b/tests/ComputeTest/xmake.lua @@ -5,3 +5,6 @@ end target("ComputeTest") add_deps("NazaraRenderer") add_files("main.cpp") + add_filegroups("shaders", {rootdir = "../../assets/shaders/compute"}) + add_headerfiles("../../assets/shaders/compute/compute_edge_detection.nzsl") + add_headerfiles("../../assets/shaders/compute/compute_sepia.nzsl")