手写魔数写为使用宏定义,以避免不可理解
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;
|
||||
|
||||
|
@ -34,7 +34,7 @@ VK_NAMESPACE_BEGIN
|
||||
|
||||
VkInstance GetVkInstance () {return inst;}
|
||||
|
||||
const List<VkLayerProperties> & GetLayerProperties ()const{return layer_properties;}
|
||||
const List<VkLayerProperties> & GetLayerProperties ()const {return layer_properties;}
|
||||
const bool CheckLayerSupport (const UTF8String &)const;
|
||||
const CharPointerList & GetExtList ()const {return ext_list;}
|
||||
const ObjectList<PhysicalDevice> &GetDeviceList ()const {return physical_devices;}
|
||||
|
Loading…
x
Reference in New Issue
Block a user