diff --git a/vulkano/src/pipeline/cache.rs b/vulkano/src/pipeline/cache.rs index e1c0a683..7d28fc7e 100644 --- a/vulkano/src/pipeline/cache.rs +++ b/vulkano/src/pipeline/cache.rs @@ -248,6 +248,7 @@ impl Drop for PipelineCache { mod tests { use crate::pipeline::cache::PipelineCache; use crate::shader::ShaderModule; + use crate::shader::spirv::ExecutionModel; use crate::pipeline::ComputePipeline; use std::sync::Arc; @@ -288,7 +289,7 @@ mod tests { let pipeline = Arc::new( ComputePipeline::new( device.clone(), - module.entry_point("main").unwrap(), + module.entry_point("main", ExecutionModel::GLCompute).unwrap(), &(), Some(cache.clone()), |_| {}, @@ -361,7 +362,7 @@ mod tests { let pipeline = Arc::new( ComputePipeline::new( device.clone(), - first_module.entry_point("main").unwrap(), + first_module.entry_point("main", ExecutionModel::GLCompute).unwrap(), &(), Some(cache.clone()), |_| {}, @@ -374,7 +375,7 @@ mod tests { let second_pipeline = Arc::new( ComputePipeline::new( device.clone(), - second_module.entry_point("main").unwrap(), + second_module.entry_point("main", ExecutionModel::GLCompute).unwrap(), &(), Some(cache.clone()), |_| {}, @@ -419,7 +420,7 @@ mod tests { let pipeline = Arc::new( ComputePipeline::new( device.clone(), - module.entry_point("main").unwrap(), + module.entry_point("main", ExecutionModel::GLCompute).unwrap(), &(), Some(cache.clone()), |_| {}, @@ -432,7 +433,7 @@ mod tests { let second_pipeline = Arc::new( ComputePipeline::new( device.clone(), - module.entry_point("main").unwrap(), + module.entry_point("main", ExecutionModel::GLCompute).unwrap(), &(), Some(cache.clone()), |_| {}, diff --git a/vulkano/src/pipeline/compute_pipeline.rs b/vulkano/src/pipeline/compute_pipeline.rs index fa62710f..f4cefa78 100644 --- a/vulkano/src/pipeline/compute_pipeline.rs +++ b/vulkano/src/pipeline/compute_pipeline.rs @@ -384,6 +384,7 @@ mod tests { use crate::shader::ShaderModule; use crate::shader::SpecializationConstants; use crate::shader::SpecializationMapEntry; + use crate::shader::spirv::ExecutionModel; use crate::sync::now; use crate::sync::GpuFuture; @@ -457,7 +458,7 @@ mod tests { let pipeline = ComputePipeline::new( device.clone(), - module.entry_point("main").unwrap(), + module.entry_point("main", ExecutionModel::GLCompute).unwrap(), &SpecConsts { VALUE: 0x12345678 }, None, |_| {},