mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 14:56:42 +00:00
Fix copy_buffers requiring a transfer queue when it's not needed
This commit is contained in:
parent
a163c0e002
commit
4eacc59ac3
@ -234,11 +234,12 @@ impl InnerCommandBufferBuilder {
|
||||
|
||||
/// Copies data between buffers.
|
||||
///
|
||||
/// There is no restriction for the type of queue that can perform this.
|
||||
///
|
||||
/// # Panic
|
||||
///
|
||||
/// - Panicks if the buffers don't belong to the same device.
|
||||
/// - Panicks if one of the buffers wasn't created with the right usage.
|
||||
/// - Panicks if the queue family doesn't support transfer operations.
|
||||
///
|
||||
/// # Safety
|
||||
///
|
||||
@ -252,7 +253,6 @@ impl InnerCommandBufferBuilder {
|
||||
where Ms: MemorySourceChunk + 'static, Md: MemorySourceChunk + 'static
|
||||
{
|
||||
assert_eq!(&**source.device() as *const _, &**destination.device() as *const _);
|
||||
assert!(self.pool.queue_family().supports_transfers());
|
||||
assert!(source.usage_transfer_src());
|
||||
assert!(destination.usage_transfer_dest());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user