Skip to content

Commit

Permalink
Skip required_subgroup_size test if compute shaders aren't supported (v…
Browse files Browse the repository at this point in the history
  • Loading branch information
Rua authored and hakolao committed Feb 20, 2024
1 parent fa2f87d commit 4179d7b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion vulkano/src/pipeline/compute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4179d7b

Please # to comment.