Vulkan/Surface: Make surface queriers const

Former-commit-id: 960e80d25be4d7260eaec5d6cb47b1f4fa0f0dc3 [formerly 3b95cbb32b29f15765d2388afd3d6158ce2756dd]
Former-commit-id: e1ffdc3b2ae7d113641f000beba6ce36543cf2f3
This commit is contained in:
Lynix
2016-06-13 19:54:20 +02:00
parent 405e873294
commit 113f99e2d1
2 changed files with 9 additions and 9 deletions

View File

@@ -64,10 +64,10 @@ namespace Nz
inline void Destroy();
bool GetCapabilities(VkPhysicalDevice physicalDevice, VkSurfaceCapabilitiesKHR* surfaceCapabilities);
bool GetFormats(VkPhysicalDevice physicalDevice, std::vector<VkSurfaceFormatKHR>* surfaceFormats);
bool GetPresentModes(VkPhysicalDevice physicalDevice, std::vector<VkPresentModeKHR>* presentModes);
bool GetSupportPresentation(VkPhysicalDevice physicalDevice, UInt32 queueFamilyIndex, bool* supported);
bool GetCapabilities(VkPhysicalDevice physicalDevice, VkSurfaceCapabilitiesKHR* surfaceCapabilities) const;
bool GetFormats(VkPhysicalDevice physicalDevice, std::vector<VkSurfaceFormatKHR>* surfaceFormats) const;
bool GetPresentModes(VkPhysicalDevice physicalDevice, std::vector<VkPresentModeKHR>* presentModes) const;
bool GetSupportPresentation(VkPhysicalDevice physicalDevice, UInt32 queueFamilyIndex, bool* supported) const;
inline bool IsSupported() const;
@@ -84,7 +84,7 @@ namespace Nz
Instance& m_instance;
VkAllocationCallbacks m_allocator;
VkSurfaceKHR m_surface;
VkResult m_lastErrorCode;
mutable VkResult m_lastErrorCode;
};
}
}