mirror of https://github.com/wayvr-org/wayvr.git
exported images to have dedicated allocations
This commit is contained in:
parent
7059a85742
commit
d2385fd3b2
|
|
@ -17,7 +17,9 @@ use vulkano::{
|
||||||
memory::{
|
memory::{
|
||||||
DedicatedAllocation, DeviceMemory, ExternalMemoryHandleType, ExternalMemoryHandleTypes,
|
DedicatedAllocation, DeviceMemory, ExternalMemoryHandleType, ExternalMemoryHandleTypes,
|
||||||
MemoryAllocateInfo, MemoryImportInfo, MemoryPropertyFlags, ResourceMemory,
|
MemoryAllocateInfo, MemoryImportInfo, MemoryPropertyFlags, ResourceMemory,
|
||||||
allocator::{AllocationCreateInfo, MemoryAllocator, MemoryTypeFilter},
|
allocator::{
|
||||||
|
AllocationCreateInfo, MemoryAllocatePreference, MemoryAllocator, MemoryTypeFilter,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
sync::Sharing,
|
sync::Sharing,
|
||||||
};
|
};
|
||||||
|
|
@ -329,6 +331,7 @@ pub fn export_dmabuf_image(
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
AllocationCreateInfo {
|
AllocationCreateInfo {
|
||||||
|
allocate_preference: MemoryAllocatePreference::AlwaysAllocate,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue