mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 06:45:23 +00:00
update tests
This commit is contained in:
parent
07335e701c
commit
2bd07d1ef4
@ -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()),
|
||||
|_| {},
|
||||
|
@ -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,
|
||||
|_| {},
|
||||
|
Loading…
Reference in New Issue
Block a user