Use supports_compute() in compute example.

This commit is contained in:
Jason Davies 2017-07-19 01:10:38 +01:00
parent ea7a1d30c0
commit b06f45736d

View File

@ -38,8 +38,8 @@ fn main() {
let physical = PhysicalDevice::enumerate(&instance).next().expect("no device available");
let queue_family = physical.queue_families()
.find(|&q| q.supports_graphics())
.expect("couldn't find a graphical queue family");
.find(|&q| q.supports_compute())
.expect("couldn't find a compute queue family");
let (device, mut queues) = {
Device::new(physical, &Features::none(), &DeviceExtensions::none(),