mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-25 00:04:15 +00:00
Skip required_subgroup_size test if compute shaders aren't supported (#2372)
This commit is contained in:
parent
9526e772e2
commit
918c4f5016
@ -465,7 +465,7 @@ mod tests {
|
|||||||
ComputePipeline, Pipeline, PipelineBindPoint, PipelineLayout,
|
ComputePipeline, Pipeline, PipelineBindPoint, PipelineLayout,
|
||||||
PipelineShaderStageCreateInfo,
|
PipelineShaderStageCreateInfo,
|
||||||
},
|
},
|
||||||
shader::{ShaderModule, ShaderModuleCreateInfo},
|
shader::{ShaderModule, ShaderModuleCreateInfo, ShaderStages},
|
||||||
sync::{now, GpuFuture},
|
sync::{now, GpuFuture},
|
||||||
};
|
};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
@ -597,6 +597,16 @@ mod tests {
|
|||||||
|
|
||||||
let (device, queue) = gfx_dev_and_queue!(subgroup_size_control);
|
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 {
|
let cs = unsafe {
|
||||||
/*
|
/*
|
||||||
#version 450
|
#version 450
|
||||||
|
Loading…
Reference in New Issue
Block a user