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")