mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests/d3d12: Check whether the d3d12 device supports geometry shaders.
This commit is contained in:
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
@@ -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)
|
||||
|
Reference in New Issue
Block a user