Skip to main content

VulkanInstanceExt

Trait VulkanInstanceExt 

Source
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§

Source

fn check_api_version(&self, major: u32, minor: u32, patch: u32) -> bool

Available on crate feature v1_26 only.
Source

fn check_version(&self, major: u32, minor: u32, patch: u32) -> bool

Source

fn create_device(&self) -> Result<VulkanDevice, Error>

Source

fn create_device_with_index( &self, device_index: u32, ) -> Result<VulkanDevice, Error>

Available on crate feature v1_26 only.
Source

fn disable_extension(&self, name: &str) -> bool

Source

fn enable_extension(&self, name: &str) -> bool

Source

fn enable_layer(&self, name: &str) -> bool

Source

fn fill_info(&self) -> Result<(), Error>

Source

fn api_version(&self) -> (u32, u32, u32)

Available on crate feature v1_26 only.
Source

fn extension_info(&self, name: &str) -> Option<u32>

Source

fn layer_info(&self, name: &str) -> Option<(Option<GString>, u32, u32)>

Source

fn version(&self) -> (u32, u32, u32)

Source

fn is_extension_enabled(&self, name: &str) -> bool

Source

fn is_layer_enabled(&self, name: &str) -> bool

Source

fn open(&self) -> Result<(), Error>

Source

fn requested_api_major(&self) -> u32

Source

fn set_requested_api_major(&self, requested_api_major: u32)

Source

fn requested_api_minor(&self) -> u32

Source

fn set_requested_api_minor(&self, requested_api_minor: u32)

Source

fn connect_create_device<F: Fn(&Self, u32) -> VulkanDevice + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Available on crate feature v1_26 only.
Source

fn connect_requested_api_major_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Source

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".

Implementors§