Type in readme

This commit is contained in:
maik klein 2016-12-23 21:42:13 +01:00
parent 03d44a42df
commit e706df027f

View file

@ -91,7 +91,7 @@ let instance: Instance = entry.create_instance(&create_info).expect("Instance cr
let device: Device = instance.create_device(pdevice, &device_create_info) let device: Device = instance.create_device(pdevice, &device_create_info)
.unwrap(); .unwrap();
``` ```
Additionally, every Vulkan extensions has to be loaded explicity. You can find all extensions under [ash::extensions](https://github.com/MaikKlein/ash/tree/master/src/extensions). You still have to tell Vulkan which instance or device extensions you want to load. Additionally, every Vulkan extension has to be loaded explicity. You can find all extensions under [ash::extensions](https://github.com/MaikKlein/ash/tree/master/src/extensions). You still have to tell Vulkan which instance or device extensions you want to load.
```Rust ```Rust
use ash::extensions::Swapchain; use ash::extensions::Swapchain;
let swapchain_loader = Swapchain::new(&instance, &device).expect("Unable to load swapchain"); let swapchain_loader = Swapchain::new(&instance, &device).expect("Unable to load swapchain");