手写魔数写为使用宏定义,以避免不可理解
This commit is contained in:
parent
82eef1c375
commit
a120222d41
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user