optimized CheckMemoryType function.

This commit is contained in:
2021-12-24 17:07:42 +08:00
parent 4602b9fb1f
commit ebffc78fae
6 changed files with 14 additions and 18 deletions

View File

@@ -53,7 +53,7 @@ public:
GPUDeviceAttribute(VulkanInstance *inst,const GPUPhysicalDevice *pd,VkSurfaceKHR s);
~GPUDeviceAttribute();
bool CheckMemoryType(uint32_t typeBits,VkMemoryPropertyFlags properties,uint32_t *typeIndex) const;
int GetMemoryType(uint32_t typeBits,VkMemoryPropertyFlags properties) const;
void RefreshSurfaceCaps();