vulkan: use transfer queue for uploads
This commit is contained in:
parent
88a528d3bf
commit
3ab5f6981f
6 changed files with 424 additions and 86 deletions
|
|
@ -86,8 +86,8 @@ impl VulkanDevice {
|
|||
drm: &Drm,
|
||||
) -> Result<VulkanBoAllocator, VulkanError> {
|
||||
let allocator = self.create_allocator()?;
|
||||
let pool = self.create_command_pool()?;
|
||||
let command_buffer = pool.allocate_buffer()?;
|
||||
let pool = self.create_command_pool(self.graphics_queue_idx)?;
|
||||
let command_buffer = pool.allocate()?;
|
||||
let drm = drm.dup_render().map_err(VulkanError::DupDrm)?;
|
||||
Ok(VulkanBoAllocator {
|
||||
data: Rc::new(VulkanBoAllocatorData {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue