mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2025-04-21 16:00:46 +03:00
TMP / Fixed vulkan_physical_device.cpp
This commit is contained in:
parent
1e88697457
commit
543de5a841
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user