Minor fix/refactoring
This commit is contained in:
parent
dd676d762e
commit
2b80642ae8
1 changed files with 1 additions and 9 deletions
10
src/main.rs
10
src/main.rs
|
@ -27,15 +27,7 @@ fn check_validation_layer_support() -> bool {
|
|||
}
|
||||
|
||||
let mut layers: Vec<ffi::VkLayerProperties> = Vec::with_capacity(layer_count as usize);
|
||||
layers.resize(
|
||||
layer_count as usize,
|
||||
ffi::VkLayerProperties {
|
||||
layerName: [0; 256],
|
||||
specVersion: 0,
|
||||
implementationVersion: 0,
|
||||
description: [0; 256],
|
||||
},
|
||||
);
|
||||
layers.resize(layer_count as usize, unsafe { std::mem::zeroed() });
|
||||
|
||||
unsafe {
|
||||
ffi::vkEnumerateInstanceLayerProperties(
|
||||
|
|
Loading…
Reference in a new issue