diff --git a/README.md b/README.md index 45a45f9..145b95d 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ use ash::{Device, Instance}; use ash::version::V1_0; // Those traits implement the version specific functions use ash::{InstanceV1_0, DeviceV1_0}; -let entry = Entry::::load_vulkan().unwrap(); +let entry = Entry::::new().unwrap(); let instance = entry.create_instance(...).expect("Instance creation error."); let device = instance.create_device(...).expect("Device creation error."); ``` diff --git a/examples/src/lib.rs b/examples/src/lib.rs index 7383d27..8aa71ec 100644 --- a/examples/src/lib.rs +++ b/examples/src/lib.rs @@ -241,7 +241,7 @@ impl ExampleBase { .with_window_resize_callback(resize_callback) .build() .unwrap(); - let entry = Entry::load_vulkan().unwrap(); + let entry = Entry::new().unwrap(); let app_name = CString::new("VulkanTriangle").unwrap(); let raw_name = app_name.as_ptr(); diff --git a/src/entry.rs b/src/entry.rs index a03b52c..aa24931 100644 --- a/src/entry.rs +++ b/src/entry.rs @@ -65,7 +65,7 @@ impl Entry { Ok(Instance::from_raw(instance, instance_fp)) } } - pub fn load_vulkan() -> Result, LoadingError> { + pub fn new() -> Result, LoadingError> { let static_fn = match *VK_LIB { Ok(ref lib) => { let static_fn = vk::StaticFn::load(|name| unsafe {