This commit is contained in:
parent
e9ce480f96
commit
210a5504ab
6 changed files with 162 additions and 90 deletions
|
@ -41,14 +41,17 @@ impl VkInstance {
|
|||
}
|
||||
|
||||
// Layers
|
||||
let layers = use_layers(
|
||||
&entry,
|
||||
LayersSelector::SpecificLayers(vec![
|
||||
#[allow(unused)]
|
||||
let mut layer_selector = LayersSelector::Nothing;
|
||||
#[cfg(debug_assertions)]
|
||||
{
|
||||
layer_selector = LayersSelector::SpecificLayers(vec![
|
||||
"VK_LAYER_KHRONOS_validation",
|
||||
"VK_LAYER_MANGOHUD_overlay_x86_64",
|
||||
"VK_LAYER_NV_optimus",
|
||||
]),
|
||||
);
|
||||
]);
|
||||
}
|
||||
let layers = use_layers(&entry, layer_selector);
|
||||
|
||||
{
|
||||
let layers = layers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue