Skip to content

Commit

Permalink
vulkan: enable Mesa device select layer (if available)
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Mar 3, 2024
1 parent 7f729d7 commit 4ce6816
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion blade-graphics/src/vulkan/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ use ash::{
use naga::back::spv;
use std::{ffi, mem, sync::Mutex};

const OPTIONAL_LAYERS: &[&[u8]] = &[];
const OPTIONAL_LAYERS: &[&[u8]] = &[
b"VK_LAYER_MESA_device_select\0",
];

const REQUIRED_DEVICE_EXTENSIONS: &[&ffi::CStr] = &[
vk::ExtInlineUniformBlockFn::name(),
Expand Down

0 comments on commit 4ce6816

Please sign in to comment.