Saving Private Windows

This commit is contained in:
CamilleLaVey 2025-11-30 03:08:31 -04:00 committed by lizzie
parent feeb311d7c
commit 69f6a0573c
2 changed files with 11 additions and 10 deletions

View file

@ -1038,14 +1038,15 @@ bool Device::GetSuitability(bool requires_swapchain) {
// Set next pointer.
void** next = &features2.pNext;
// Vulkan 1.2 and 1.3 features
// Vulkan 1.2 and 1.3 features
if (instance_version >= VK_API_VERSION_1_2) {
features_1_2.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES;
SetNext(next, features_1_2);
features_1_2.pNext = nullptr;
*next = &features_1_2;
if (instance_version >= VK_API_VERSION_1_3) {
features_1_3.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES;
SetNext(next, features_1_3);
features_1_3.pNext = nullptr;
features_1_2.pNext = &features_1_3;
}
}