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