add clean&zero at PhysicalDevice::GetFormatProperties function

This commit is contained in:
hyzboy 2020-10-15 17:29:32 +08:00
parent cf1f39fa3d
commit 490af01162

View File

@ -67,6 +67,8 @@ public:
{ {
VkFormatProperties fp; VkFormatProperties fp;
hgl_zero(fp);
vkGetPhysicalDeviceFormatProperties(physical_device,format,&fp); vkGetPhysicalDeviceFormatProperties(physical_device,format,&fp);
return fp; return fp;