fix the shaderunner version
This commit is contained in:
@@ -50,7 +50,7 @@ impl CompuKernel {
|
||||
|
||||
let mut options = CompileOptions::new().ok_or(CompileError::CreateCompiler).unwrap();
|
||||
|
||||
let shader = sr::load_compute_with_options(compute_path.clone(), options)
|
||||
let shader = sr::load_compute(compute_path.clone(), Some(options))
|
||||
.expect("Failed to compile");
|
||||
|
||||
let entry = sr::parse_compute(&shader)
|
||||
@@ -106,7 +106,7 @@ impl CompuKernel {
|
||||
self.compute_kernel_path = CompuKernel::get_path(filename);
|
||||
|
||||
self.shader =
|
||||
sr::load_compute_with_options(self.compute_kernel_path.clone(), options)
|
||||
sr::load_compute(self.compute_kernel_path.clone(), Some(options))
|
||||
.expect("Failed to compile");
|
||||
|
||||
self.entry =
|
||||
|
||||
Reference in New Issue
Block a user