Type Definition ash::Entry [−][src]
pub type Entry = EntryCustom<Arc<Library>>;
Expand description
Default function loader
Implementations
Load default Vulkan library for the current platform
Safety
dlopen
ing native libraries is inherently unsafe. The safety guidelines
for Library::new
and Library::get
apply here.
use ash::{vk, Entry};
let entry = unsafe { Entry::new() }?;
let app_info = vk::ApplicationInfo {
api_version: vk::make_api_version(0, 1, 0, 0),
..Default::default()
};
let create_info = vk::InstanceCreateInfo {
p_application_info: &app_info,
..Default::default()
};
let instance = unsafe { entry.create_instance(&create_info, None)? };
Load Vulkan library at path
Safety
dlopen
ing native libraries is inherently unsafe. The safety guidelines
for Library::new
and Library::get
apply here.