pub trait VulkanInstanceExt: IsA<VulkanInstance> + 'static {
Show 22 methods
// Provided methods
fn check_api_version(&self, major: u32, minor: u32, patch: u32) -> bool { ... }
fn check_version(&self, major: u32, minor: u32, patch: u32) -> bool { ... }
fn create_device(&self) -> Result<VulkanDevice, Error> { ... }
fn create_device_with_index(
&self,
device_index: u32,
) -> Result<VulkanDevice, Error> { ... }
fn disable_extension(&self, name: &str) -> bool { ... }
fn enable_extension(&self, name: &str) -> bool { ... }
fn enable_layer(&self, name: &str) -> bool { ... }
fn fill_info(&self) -> Result<(), Error> { ... }
fn api_version(&self) -> (u32, u32, u32) { ... }
fn extension_info(&self, name: &str) -> Option<u32> { ... }
fn layer_info(&self, name: &str) -> Option<(Option<GString>, u32, u32)> { ... }
fn version(&self) -> (u32, u32, u32) { ... }
fn is_extension_enabled(&self, name: &str) -> bool { ... }
fn is_layer_enabled(&self, name: &str) -> bool { ... }
fn open(&self) -> Result<(), Error> { ... }
fn requested_api_major(&self) -> u32 { ... }
fn set_requested_api_major(&self, requested_api_major: u32) { ... }
fn requested_api_minor(&self) -> u32 { ... }
fn set_requested_api_minor(&self, requested_api_minor: u32) { ... }
fn connect_create_device<F: Fn(&Self, u32) -> VulkanDevice + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_requested_api_major_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_requested_api_minor_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}Provided Methods§
fn check_api_version(&self, major: u32, minor: u32, patch: u32) -> bool
Available on crate feature
v1_26 only.fn check_version(&self, major: u32, minor: u32, patch: u32) -> bool
fn create_device(&self) -> Result<VulkanDevice, Error>
fn create_device_with_index( &self, device_index: u32, ) -> Result<VulkanDevice, Error>
Available on crate feature
v1_26 only.fn disable_extension(&self, name: &str) -> bool
fn enable_extension(&self, name: &str) -> bool
fn enable_layer(&self, name: &str) -> bool
fn fill_info(&self) -> Result<(), Error>
fn api_version(&self) -> (u32, u32, u32)
Available on crate feature
v1_26 only.fn extension_info(&self, name: &str) -> Option<u32>
fn layer_info(&self, name: &str) -> Option<(Option<GString>, u32, u32)>
fn version(&self) -> (u32, u32, u32)
fn is_extension_enabled(&self, name: &str) -> bool
fn is_layer_enabled(&self, name: &str) -> bool
fn open(&self) -> Result<(), Error>
fn requested_api_major(&self) -> u32
fn set_requested_api_major(&self, requested_api_major: u32)
fn requested_api_minor(&self) -> u32
fn set_requested_api_minor(&self, requested_api_minor: u32)
fn connect_create_device<F: Fn(&Self, u32) -> VulkanDevice + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v1_26 only.fn connect_requested_api_major_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_requested_api_minor_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".