手写魔数写为使用宏定义,以避免不可理解

This commit is contained in:
HuYingzhuo 2019-04-13 21:51:36 +08:00
parent 82eef1c375
commit a120222d41
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ namespace
VkExtent2D GetSwapchainExtent(VkSurfaceCapabilitiesKHR &surface_caps,uint32_t width,uint32_t height)
{
if(surface_caps.currentExtent.width==0xFFFFFFFF)
if(surface_caps.currentExtent.width==UINT32_MAX)
{
VkExtent2D swapchain_extent;