Trait Vulkan Device Ext
Source pub trait VulkanDeviceExt: IsA<VulkanDevice> + 'static {
// Provided methods
fn create_fence(&self) -> Result<Option<VulkanFence>, Error> { ... }
fn disable_extension(&self, name: &str) -> bool { ... }
fn enable_extension(&self, name: &str) -> bool { ... }
fn enable_layer(&self, name: &str) -> bool { ... }
fn foreach_queue<P: FnMut(&VulkanDevice, &VulkanQueue) -> bool>(
&self,
func: P,
) { ... }
fn instance(&self) -> Option<VulkanInstance> { ... }
fn queue(&self, queue_family: u32, queue_i: u32) -> VulkanQueue { ... }
fn is_extension_enabled(&self, name: &str) -> bool { ... }
fn is_layer_enabled(&self, name: &str) -> bool { ... }
fn open(&self) -> Result<(), Error> { ... }
fn connect_instance_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}Expand description
Provided Methods§
Sourcefn create_fence(&self) -> Result<Option<VulkanFence>, Error>
fn create_fence(&self) -> Result<Option<VulkanFence>, Error>
§Returns
a new VulkanFence or None
Sourcefn disable_extension(&self, name: &str) -> bool
fn disable_extension(&self, name: &str) -> bool
Sourcefn enable_extension(&self, name: &str) -> bool
fn enable_extension(&self, name: &str) -> bool
Sourcefn enable_layer(&self, name: &str) -> bool
fn enable_layer(&self, name: &str) -> bool
Sourcefn foreach_queue<P: FnMut(&VulkanDevice, &VulkanQueue) -> bool>(&self, func: P)
fn foreach_queue<P: FnMut(&VulkanDevice, &VulkanQueue) -> bool>(&self, func: P)
Iterate over each queue family available on VulkanDevice
§func
a GstVulkanDeviceForEachQueueFunc
to run for each VulkanQueue
Sourcefn instance(&self) -> Option<VulkanInstance>
fn instance(&self) -> Option<VulkanInstance>
§Returns
the VulkanInstance used to create this self
Sourcefn queue(&self, queue_family: u32, queue_i: u32) -> VulkanQueue
fn queue(&self, queue_family: u32, queue_i: u32) -> VulkanQueue
§queue_family
a queue family to retrieve
§queue_i
index of the family to retrieve
§Returns
a new VulkanQueue
Sourcefn is_extension_enabled(&self, name: &str) -> bool
fn is_extension_enabled(&self, name: &str) -> bool
Sourcefn is_layer_enabled(&self, name: &str) -> bool
fn is_layer_enabled(&self, name: &str) -> bool
fn connect_instance_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.