pub trait IVulkanInstance: Send + Sync {
// Required methods
fn handle(&self) -> isize;
fn get_instance_proc_address(&self, instance: isize, name: &str) -> isize;
fn get_device_proc_address(&self, device: isize, name: &str) -> isize;
fn enabled_extensions(&self) -> Vec<String>;
}Expand description
A Vulkan instance and the way to its entry points.
Required Methods§
Sourcefn get_instance_proc_address(&self, instance: isize, name: &str) -> isize
fn get_instance_proc_address(&self, instance: isize, name: &str) -> isize
The address of an instance-level entry point (vkGetInstanceProcAddr);
zero when the instance does not have it.
Sourcefn get_device_proc_address(&self, device: isize, name: &str) -> isize
fn get_device_proc_address(&self, device: isize, name: &str) -> isize
The address of a device-level entry point (vkGetDeviceProcAddr);
zero when the device does not have it.
Sourcefn enabled_extensions(&self) -> Vec<String>
fn enabled_extensions(&self) -> Vec<String>
The names of the instance extensions that were enabled.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".