diff --git a/src/main.rs b/src/main.rs index 68ae303..b3d97e2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -27,15 +27,7 @@ fn check_validation_layer_support() -> bool { } let mut layers: Vec = 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(