wavefront: port to spirv driver

This commit is contained in:
2022-07-24 17:45:13 -07:00
parent e62dc495f1
commit c8a082d2a1

View File

@@ -22,10 +22,10 @@ fn main() {
// each cell represents 1um x 1um x 1um volume
let feature_size = 1e-6;
// Create the simulation "driver" which uses the CPU as backend.
// by default all the computations are done with R32: a f32 which panics on NaN/Inf
// you can parameterize it to use R64, or unchecked f32 -- see src/driver.rs for the definition
let mut driver: driver::CpuDriver = driver::Driver::new(size, feature_size);
// create the simulation "driver".
// by default all the computations are done with R32: a f32 which panics on NaN/Inf.
// you can parameterize it to use R64, or unchecked f32 -- see src/driver.rs for definition.
let mut driver: driver::SpirvDriver = driver::Driver::new_spirv(size, feature_size);
// uncomment to use the Spirv/GPU driver. this one is restricted to unchecked f32.
// note: this won't have better perf unless you reduce the y4m/term renderer framerate below.