mirror of
https://github.com/simple64/simple64.git
synced 2026-11-13 00:08:42 +01:00
update parallel rdp
This commit is contained in:
1 parent
d3a26d3959
commit
14e7485541
24 files changed
+1295
-391
No files matched your search
@@ -525,6 +525,12 @@ bool Context::create_device(VkPhysicalDevice gpu_, VkSurfaceKHR surface, const c
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
VkPhysicalDeviceProperties props;
|
||||
vkGetPhysicalDeviceProperties(gpu, &props);
|
||||
LOGI("Using Vulkan GPU: %s\n", props.deviceName);
|
||||
}
|
||||
|
||||
uint32_t ext_count = 0;
|
||||
vkEnumerateDeviceExtensionProperties(gpu, nullptr, &ext_count, nullptr);
|
||||
vector<VkExtensionProperties> queried_extensions(ext_count);
|
||||
@@ -1088,6 +1094,7 @@ bool Context::create_device(VkPhysicalDevice gpu_, VkSurfaceKHR surface, const c
|
||||
ext.descriptor_indexing_properties = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_PROPERTIES_EXT };
|
||||
ext.conservative_rasterization_properties = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CONSERVATIVE_RASTERIZATION_PROPERTIES_EXT };
|
||||
ext.float_control_properties = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT_CONTROLS_PROPERTIES_KHR };
|
||||
ext.id_properties = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ID_PROPERTIES };
|
||||
|
||||
ppNext = &props.pNext;
|
||||
|
||||
@@ -1134,6 +1141,12 @@ bool Context::create_device(VkPhysicalDevice gpu_, VkSurfaceKHR surface, const c
|
||||
ppNext = &ext.float_control_properties.pNext;
|
||||
}
|
||||
|
||||
if (ext.supports_external)
|
||||
{
|
||||
*ppNext = &ext.id_properties;
|
||||
ppNext = &ext.id_properties.pNext;
|
||||
}
|
||||
|
||||
vkGetPhysicalDeviceProperties2(gpu, &props);
|
||||
|
||||
device_info.enabledExtensionCount = enabled_extensions.size();
|
||||
|
||||
Reference in new issue
Block a user