tests/d3d12: Check whether the d3d12 device supports geometry shaders.

This commit is contained in:
Henri Verbeet
2025-08-04 17:23:35 +02:00
parent 4bb880f9ed
commit 47a183c75b
Notes: Henri Verbeet 2025-08-06 13:02:39 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1668
2 changed files with 30 additions and 5 deletions

View File

@@ -558,6 +558,11 @@ static inline bool is_depth_clip_enable_supported(ID3D12Device *device)
return true;
}
static inline bool is_geometry_shader_supported(ID3D12Device *device)
{
return true;
}
#else
#define VKD3D_AGILITY_SDK_EXPORTS
@@ -940,6 +945,15 @@ static inline bool is_depth_clip_enable_supported(ID3D12Device *device)
VkPhysicalDevice vk_physical_device = vkd3d_get_vk_physical_device(device);
return check_device_extension(vk_physical_device, VK_EXT_DEPTH_CLIP_ENABLE_EXTENSION_NAME);
}
static inline bool is_geometry_shader_supported(ID3D12Device *device)
{
VkPhysicalDeviceFeatures features;
vkGetPhysicalDeviceFeatures(vkd3d_get_vk_physical_device(device), &features);
return features.geometryShader;
}
#endif
static void enable_d3d12_debug_layer(void)