update tests

This commit is contained in:
incertia 2021-11-14 04:30:30 -05:00
parent 07335e701c
commit 2bd07d1ef4
No known key found for this signature in database
GPG Key ID: 34A5EA2BDF564923
2 changed files with 8 additions and 6 deletions

View File

@ -248,6 +248,7 @@ impl Drop for PipelineCache {
mod tests { mod tests {
use crate::pipeline::cache::PipelineCache; use crate::pipeline::cache::PipelineCache;
use crate::shader::ShaderModule; use crate::shader::ShaderModule;
use crate::shader::spirv::ExecutionModel;
use crate::pipeline::ComputePipeline; use crate::pipeline::ComputePipeline;
use std::sync::Arc; use std::sync::Arc;
@ -288,7 +289,7 @@ mod tests {
let pipeline = Arc::new( let pipeline = Arc::new(
ComputePipeline::new( ComputePipeline::new(
device.clone(), device.clone(),
module.entry_point("main").unwrap(), module.entry_point("main", ExecutionModel::GLCompute).unwrap(),
&(), &(),
Some(cache.clone()), Some(cache.clone()),
|_| {}, |_| {},
@ -361,7 +362,7 @@ mod tests {
let pipeline = Arc::new( let pipeline = Arc::new(
ComputePipeline::new( ComputePipeline::new(
device.clone(), device.clone(),
first_module.entry_point("main").unwrap(), first_module.entry_point("main", ExecutionModel::GLCompute).unwrap(),
&(), &(),
Some(cache.clone()), Some(cache.clone()),
|_| {}, |_| {},
@ -374,7 +375,7 @@ mod tests {
let second_pipeline = Arc::new( let second_pipeline = Arc::new(
ComputePipeline::new( ComputePipeline::new(
device.clone(), device.clone(),
second_module.entry_point("main").unwrap(), second_module.entry_point("main", ExecutionModel::GLCompute).unwrap(),
&(), &(),
Some(cache.clone()), Some(cache.clone()),
|_| {}, |_| {},
@ -419,7 +420,7 @@ mod tests {
let pipeline = Arc::new( let pipeline = Arc::new(
ComputePipeline::new( ComputePipeline::new(
device.clone(), device.clone(),
module.entry_point("main").unwrap(), module.entry_point("main", ExecutionModel::GLCompute).unwrap(),
&(), &(),
Some(cache.clone()), Some(cache.clone()),
|_| {}, |_| {},
@ -432,7 +433,7 @@ mod tests {
let second_pipeline = Arc::new( let second_pipeline = Arc::new(
ComputePipeline::new( ComputePipeline::new(
device.clone(), device.clone(),
module.entry_point("main").unwrap(), module.entry_point("main", ExecutionModel::GLCompute).unwrap(),
&(), &(),
Some(cache.clone()), Some(cache.clone()),
|_| {}, |_| {},

View File

@ -384,6 +384,7 @@ mod tests {
use crate::shader::ShaderModule; use crate::shader::ShaderModule;
use crate::shader::SpecializationConstants; use crate::shader::SpecializationConstants;
use crate::shader::SpecializationMapEntry; use crate::shader::SpecializationMapEntry;
use crate::shader::spirv::ExecutionModel;
use crate::sync::now; use crate::sync::now;
use crate::sync::GpuFuture; use crate::sync::GpuFuture;
@ -457,7 +458,7 @@ mod tests {
let pipeline = ComputePipeline::new( let pipeline = ComputePipeline::new(
device.clone(), device.clone(),
module.entry_point("main").unwrap(), module.entry_point("main", ExecutionModel::GLCompute).unwrap(),
&SpecConsts { VALUE: 0x12345678 }, &SpecConsts { VALUE: 0x12345678 },
None, None,
|_| {}, |_| {},