mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-25 08:14:20 +00:00
The future is here. Some graphics cards are now only setting the transfer bit on queues with some special DMA controller relationship that can perform higher speed transfers. Let's tell the truth. (#1187)
This commit is contained in:
parent
3518268b7f
commit
c71270a0e7
@ -1,5 +1,6 @@
|
||||
# Unreleased (breaking)
|
||||
|
||||
- `QueueFamily::explicitly_supports_tranfers` only returns true if `vk::QUEUE_TRANSFER_BIT` is set instead of also always returning true. Removed `supports_transfers`.
|
||||
- Update to winit 0.19
|
||||
- Add support for `#include "..."` and `#include <...>` directives within source
|
||||
files.
|
||||
|
@ -1073,15 +1073,13 @@ impl<'a> QueueFamily<'a> {
|
||||
}
|
||||
|
||||
/// Returns true if queues of this family can execute transfer operations.
|
||||
///
|
||||
/// > **Note**: Queues that support graphics or compute operations also always support transfer
|
||||
/// > operations. As of writing this, this function will always return true. The purpose of
|
||||
/// > this function is to be future-proofed in case queues that don't support transfer
|
||||
/// > operations are ever added to Vulkan.
|
||||
/// > **Note**: While all queues that can perform graphics or compute operations can implicitly perform
|
||||
/// > transfer operations, graphics & compute queues only optionally indicate support for tranfers.
|
||||
/// > Many discrete cards will have one queue family that exclusively sets the VK_QUEUE_TRANSFER_BIT
|
||||
/// > to indicate a special relationship with the DMA module and more efficient transfers.
|
||||
#[inline]
|
||||
pub fn supports_transfers(&self) -> bool {
|
||||
(self.flags() & vk::QUEUE_TRANSFER_BIT) != 0 || self.supports_graphics() ||
|
||||
self.supports_compute()
|
||||
pub fn explicitly_supports_transfers(&self) -> bool {
|
||||
(self.flags() & vk::QUEUE_TRANSFER_BIT) != 0
|
||||
}
|
||||
|
||||
/// Returns true if queues of this family can execute sparse resources binding operations.
|
||||
|
Loading…
Reference in New Issue
Block a user