mirror of
https://github.com/italicsjenga/portability.git
synced 2024-11-30 02:41:32 +11:00
Merge #187
187: Add transfer bit to all queue families r=kvark a=aloucks Per the `gfx_hal::queue::QueueType` [docs](https://docs.rs/gfx-hal/0.2.0/gfx_hal/queue/enum.QueueType.html), all variants should include transfer operations. Notably, `General` now contains all three queue types. Co-authored-by: Aaron Loucks <aloucks@cofront.net>
This commit is contained in:
commit
4c0faf6c95
|
@ -183,9 +183,12 @@ pub extern "C" fn gfxGetPhysicalDeviceQueueFamilyProperties(
|
||||||
hal::QueueType::General => {
|
hal::QueueType::General => {
|
||||||
VkQueueFlagBits::VK_QUEUE_GRAPHICS_BIT as u32
|
VkQueueFlagBits::VK_QUEUE_GRAPHICS_BIT as u32
|
||||||
| VkQueueFlagBits::VK_QUEUE_COMPUTE_BIT as u32
|
| VkQueueFlagBits::VK_QUEUE_COMPUTE_BIT as u32
|
||||||
|
| VkQueueFlagBits::VK_QUEUE_TRANSFER_BIT as u32
|
||||||
}
|
}
|
||||||
hal::QueueType::Graphics => VkQueueFlagBits::VK_QUEUE_GRAPHICS_BIT as u32,
|
hal::QueueType::Graphics => VkQueueFlagBits::VK_QUEUE_GRAPHICS_BIT as u32
|
||||||
hal::QueueType::Compute => VkQueueFlagBits::VK_QUEUE_COMPUTE_BIT as u32,
|
| VkQueueFlagBits::VK_QUEUE_TRANSFER_BIT as u32,
|
||||||
|
hal::QueueType::Compute => VkQueueFlagBits::VK_QUEUE_COMPUTE_BIT as u32
|
||||||
|
| VkQueueFlagBits::VK_QUEUE_TRANSFER_BIT as u32,
|
||||||
hal::QueueType::Transfer => VkQueueFlagBits::VK_QUEUE_TRANSFER_BIT as u32,
|
hal::QueueType::Transfer => VkQueueFlagBits::VK_QUEUE_TRANSFER_BIT as u32,
|
||||||
},
|
},
|
||||||
queueCount: family.max_queues() as _,
|
queueCount: family.max_queues() as _,
|
||||||
|
|
Loading…
Reference in a new issue