summaryrefslogtreecommitdiffstats
path: root/src/video_core/vulkan_common
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-06-10 04:57:50 +0200
committerLiam <byteslice@airmail.cc>2023-06-10 18:38:49 +0200
commit2f1e87dd83b4ce4e6ea12f985b6da49829d821e4 (patch)
tree85c9eaeb191ab46c2b9d8c2055c2824f4aa1ca6f /src/video_core/vulkan_common
parentMerge pull request #10614 from xcfrg/shader-backend-status-bar (diff)
downloadyuzu-2f1e87dd83b4ce4e6ea12f985b6da49829d821e4.tar
yuzu-2f1e87dd83b4ce4e6ea12f985b6da49829d821e4.tar.gz
yuzu-2f1e87dd83b4ce4e6ea12f985b6da49829d821e4.tar.bz2
yuzu-2f1e87dd83b4ce4e6ea12f985b6da49829d821e4.tar.lz
yuzu-2f1e87dd83b4ce4e6ea12f985b6da49829d821e4.tar.xz
yuzu-2f1e87dd83b4ce4e6ea12f985b6da49829d821e4.tar.zst
yuzu-2f1e87dd83b4ce4e6ea12f985b6da49829d821e4.zip
Diffstat (limited to 'src/video_core/vulkan_common')
-rw-r--r--src/video_core/vulkan_common/vulkan_device.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.h b/src/video_core/vulkan_common/vulkan_device.h
index d62a103a1..0c53e35a6 100644
--- a/src/video_core/vulkan_common/vulkan_device.h
+++ b/src/video_core/vulkan_common/vulkan_device.h
@@ -300,6 +300,11 @@ public:
return GetDriverID() != VK_DRIVER_ID_QUALCOMM_PROPRIETARY;
}
+ /// Returns true if the device suppors float64 natively.
+ bool IsFloat64Supported() const {
+ return features.features.shaderFloat64;
+ }
+
/// Returns true if the device supports float16 natively.
bool IsFloat16Supported() const {
return features.shader_float16_int8.shaderFloat16;