vulkan: use sync objects if possible
This commit is contained in:
parent
2ac3519f2d
commit
3d3132fe39
23 changed files with 535 additions and 86 deletions
|
|
@ -1,6 +1,21 @@
|
|||
use ash::{Device, khr::external_fence_fd};
|
||||
use {
|
||||
crate::{
|
||||
eventfd_cache::EventfdCache, video::drm::syncobj::SyncobjCtx,
|
||||
vulkan_core::VulkanCoreInstance,
|
||||
},
|
||||
ash::{
|
||||
Device,
|
||||
khr::{external_fence_fd, external_semaphore_fd},
|
||||
},
|
||||
std::rc::Rc,
|
||||
};
|
||||
|
||||
pub trait VulkanDeviceInf: Sized {
|
||||
fn instance(&self) -> &VulkanCoreInstance;
|
||||
fn device(&self) -> &Device;
|
||||
fn external_fence_fd(&self) -> &external_fence_fd::Device;
|
||||
fn external_semaphore_fd(&self) -> &external_semaphore_fd::Device;
|
||||
fn supports_timeline_opaque_export(&self) -> bool;
|
||||
fn sync_ctx(&self) -> &Rc<SyncobjCtx>;
|
||||
fn eventfd_cache(&self) -> &Rc<EventfdCache>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue