render: remove TextureReservations
This commit is contained in:
parent
300deecc7d
commit
ea4a1f027b
20 changed files with 198 additions and 172 deletions
|
|
@ -36,9 +36,9 @@ impl VulkanDevice {
|
|||
}
|
||||
|
||||
impl VulkanSemaphore {
|
||||
pub fn import_syncfile(&self, syncfile: OwnedFd) -> Result<(), VulkanError> {
|
||||
pub fn import_sync_file(&self, sync_file: OwnedFd) -> Result<(), VulkanError> {
|
||||
let fd_info = ImportSemaphoreFdInfoKHR::builder()
|
||||
.fd(syncfile.raw())
|
||||
.fd(sync_file.raw())
|
||||
.flags(SemaphoreImportFlags::TEMPORARY)
|
||||
.handle_type(ExternalSemaphoreHandleTypeFlags::SYNC_FD)
|
||||
.semaphore(self.semaphore);
|
||||
|
|
@ -47,7 +47,7 @@ impl VulkanSemaphore {
|
|||
.external_semaphore_fd
|
||||
.import_semaphore_fd(&fd_info)
|
||||
};
|
||||
mem::forget(syncfile);
|
||||
mem::forget(sync_file);
|
||||
res.map_err(VulkanError::ImportSyncFile)?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue