Add compute shaders as filegroup on VS
This commit is contained in:
parent
e3da81dff4
commit
d94d5415a3
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue