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 {
|
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()),
|
||||||
|_| {},
|
|_| {},
|
||||||
|
@ -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,
|
||||||
|_| {},
|
|_| {},
|
||||||
|
Loading…
Reference in New Issue
Block a user