mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 06:45:23 +00:00
Use supports_compute() in compute example.
This commit is contained in:
parent
ea7a1d30c0
commit
b06f45736d
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user