examples: fix debug example layers on macos using "VK_LAYER_KHRONOS_validation"
@@ -48,8 +48,11 @@ fn main() {
}
// NOTE: To simplify the example code we won't verify these layer(s) are actually in the layers list:
- let layer = "VK_LAYER_LUNARG_standard_validation";
- let layers = vec![layer];
+ #[cfg(not(target_os = "macos"))]
+ let layers = vec!["VK_LAYER_LUNARG_standard_validation"];
+
+ #[cfg(target_os = "macos")]
+ let layers = vec!["VK_LAYER_KHRONOS_validation"];
// Important: pass the extension(s) and layer(s) when creating the vulkano instance
let instance =
