Add compute shaders as filegroup on VS

This commit is contained in:
SirLynix 2023-07-21 08:57:24 +02:00 committed by Jérôme Leclercq
parent e3da81dff4
commit d94d5415a3
2 changed files with 10 additions and 0 deletions

View File

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

View File

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