From 2b80642ae87bca74decc21a3226254b9986c9ef4 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Tue, 5 Mar 2024 18:27:37 +0900 Subject: [PATCH] Minor fix/refactoring --- src/main.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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(