mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
tests/shader_runner: Introduce a "cull-distance" capability.
This commit is contained in:
committed by
Henri Verbeet
parent
d3f658d410
commit
cb7dac4d65
Notes:
Henri Verbeet
2025-10-29 13:43:34 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1801
@@ -552,6 +552,11 @@ static inline bool is_macos_lt(unsigned int major, unsigned int minor, unsigned
|
||||
return false;
|
||||
}
|
||||
|
||||
static inline bool is_cull_distance_supported(ID3D12Device *device)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static inline bool is_depth_clip_enable_supported(ID3D12Device *device)
|
||||
{
|
||||
return true;
|
||||
@@ -932,6 +937,15 @@ static inline bool is_macos_lt(unsigned int major, unsigned int minor, unsigned
|
||||
|
||||
#endif
|
||||
|
||||
static inline bool is_cull_distance_supported(ID3D12Device *device)
|
||||
{
|
||||
VkPhysicalDeviceFeatures features;
|
||||
|
||||
vkGetPhysicalDeviceFeatures(vkd3d_get_vk_physical_device(device), &features);
|
||||
|
||||
return features.shaderCullDistance;
|
||||
}
|
||||
|
||||
static inline bool is_depth_clip_enable_supported(ID3D12Device *device)
|
||||
{
|
||||
VkPhysicalDevice vk_physical_device = vkd3d_get_vk_physical_device(device);
|
||||
|
||||
Reference in New Issue
Block a user