TMP / Fixed vulkan_physical_device.cpp

This commit is contained in:
OLEGSHA 2023-03-28 16:02:24 +02:00
parent 1e88697457
commit 543de5a841

View File

@ -2,12 +2,14 @@
namespace progressia::desktop { namespace progressia::desktop {
PhysicalDevice::PhysicalDevice(VkPhysicalDevice vk) : vk(vk) { PhysicalDevice::PhysicalDevice(VkPhysicalDevice vk)
: vk(vk), properties(), features(), memory() {
vkGetPhysicalDeviceProperties(vk, &properties); vkGetPhysicalDeviceProperties(vk, &properties);
vkGetPhysicalDeviceFeatures(vk, &features); vkGetPhysicalDeviceFeatures(vk, &features);
vkGetPhysicalDeviceMemoryProperties(vk, &memory); vkGetPhysicalDeviceMemoryProperties(vk, &memory);
} }
// NOLINTNEXTLINE(readability-convert-member-functions-to-static): future-proofing
bool PhysicalDevice::isSuitable() const { bool PhysicalDevice::isSuitable() const {
// Add feature, limit, etc. checks here. // Add feature, limit, etc. checks here.
// Return false and debug() if problems arise. // Return false and debug() if problems arise.