mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2026-10-20 18:20:56 +03:00
TMP / Fixed vulkan_physical_device.cpp
This commit is contained in:
1 parent
1e88697457
commit
543de5a841
1 file changed
+3
-1
@@ -2,12 +2,14 @@
|
||||
|
||||
namespace progressia::desktop {
|
||||
|
||||
PhysicalDevice::PhysicalDevice(VkPhysicalDevice vk) : vk(vk) {
|
||||
PhysicalDevice::PhysicalDevice(VkPhysicalDevice vk)
|
||||
: vk(vk), properties(), features(), memory() {
|
||||
vkGetPhysicalDeviceProperties(vk, &properties);
|
||||
vkGetPhysicalDeviceFeatures(vk, &features);
|
||||
vkGetPhysicalDeviceMemoryProperties(vk, &memory);
|
||||
}
|
||||
|
||||
// NOLINTNEXTLINE(readability-convert-member-functions-to-static): future-proofing
|
||||
bool PhysicalDevice::isSuitable() const {
|
||||
// Add feature, limit, etc. checks here.
|
||||
// Return false and debug() if problems arise.
|
||||
|
||||
Reference in new issue
Block a user