diff --git a/vulkano/src/pipeline/compute.rs b/vulkano/src/pipeline/compute.rs index b9a8ce81d7..e5b5ae49b6 100644 --- a/vulkano/src/pipeline/compute.rs +++ b/vulkano/src/pipeline/compute.rs @@ -465,7 +465,7 @@ mod tests { ComputePipeline, Pipeline, PipelineBindPoint, PipelineLayout, PipelineShaderStageCreateInfo, }, - shader::{ShaderModule, ShaderModuleCreateInfo}, + shader::{ShaderModule, ShaderModuleCreateInfo, ShaderStages}, sync::{now, GpuFuture}, }; use std::sync::Arc; @@ -597,6 +597,16 @@ mod tests { let (device, queue) = gfx_dev_and_queue!(subgroup_size_control); + if !device + .physical_device() + .properties() + .required_subgroup_size_stages + .unwrap_or_default() + .intersects(ShaderStages::COMPUTE) + { + return; + } + let cs = unsafe { /* #version 450