exported images to have dedicated allocations

This commit is contained in:
galister 2026-01-12 22:27:12 +09:00
parent 7059a85742
commit d2385fd3b2
1 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,9 @@ use vulkano::{
memory::{
DedicatedAllocation, DeviceMemory, ExternalMemoryHandleType, ExternalMemoryHandleTypes,
MemoryAllocateInfo, MemoryImportInfo, MemoryPropertyFlags, ResourceMemory,
allocator::{AllocationCreateInfo, MemoryAllocator, MemoryTypeFilter},
allocator::{
AllocationCreateInfo, MemoryAllocatePreference, MemoryAllocator, MemoryTypeFilter,
},
},
sync::Sharing,
};
@ -329,6 +331,7 @@ pub fn export_dmabuf_image(
..Default::default()
},
AllocationCreateInfo {
allocate_preference: MemoryAllocatePreference::AlwaysAllocate,
..Default::default()
},
)