Skip to main content

required_extensions

Function required_extensions 

Source
pub fn required_extensions() -> &'static [&'static CStr]
Expand description

Instance extensions required for surface creation on this platform.

Always includes VK_KHR_surface. Adds the platform-specific surface extension based on #[cfg(target_os)].

ยงExamples

use vulkan_rust::required_extensions;
use vulkan_rust::vk::extension_names::KHR_SURFACE_EXTENSION_NAME;

let exts = required_extensions();
assert!(exts.iter().any(|e| *e == KHR_SURFACE_EXTENSION_NAME));