Skip to main content

IVulkanInstance

Trait IVulkanInstance 

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

Source

fn handle(&self) -> isize

The VkInstance.

Source

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.

Source

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.

Source

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

Implementors§