From 9aa7281645d2b01d393589e5f549e119f81f5780 Mon Sep 17 00:00:00 2001 From: maik klein Date: Wed, 28 Dec 2016 04:22:13 +0100 Subject: [PATCH] Extension names, README --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index d2e3f93..7cf6972 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,19 @@ pub fn create_command_pool(&self, let pool = device.create_command_pool(&pool_create_info).unwrap(); ``` + +Support for extension names +```Rust +use ash::extensions::{Swapchain, XlibSurface, Surface, DebugReport}; +#[cfg(all(unix, not(target_os = "android")))] +fn extension_names() -> Vec<*const i8> { + vec![ + Surface::name().as_ptr(), + XlibSurface::name().as_ptr(), + DebugReport::name().as_ptr() + ] +} +``` ## Example You can find the examples [here](https://github.com/MaikKlein/ash/tree/master/examples). All examples currently require: the LunarG Validation layers and a Vulkan library that is visible in your `PATH`.