summaryrefslogtreecommitdiffstats
path: root/src/video_core/vulkan_common/vulkan_device.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-06-12 21:46:54 +0200
committerGitHub <noreply@github.com>2023-06-12 21:46:54 +0200
commitad8f122ab106a474bee26ca2f638cfe51256eb6e (patch)
tree689bbdec246df545970abaea91d196b7a94d6bb7 /src/video_core/vulkan_common/vulkan_device.h
parentMerge pull request #10718 from liamwhite/buffered-io (diff)
parentshader_recompiler: translate f64 to f32 when unsupported on host (diff)
downloadyuzu-ad8f122ab106a474bee26ca2f638cfe51256eb6e.tar
yuzu-ad8f122ab106a474bee26ca2f638cfe51256eb6e.tar.gz
yuzu-ad8f122ab106a474bee26ca2f638cfe51256eb6e.tar.bz2
yuzu-ad8f122ab106a474bee26ca2f638cfe51256eb6e.tar.lz
yuzu-ad8f122ab106a474bee26ca2f638cfe51256eb6e.tar.xz
yuzu-ad8f122ab106a474bee26ca2f638cfe51256eb6e.tar.zst
yuzu-ad8f122ab106a474bee26ca2f638cfe51256eb6e.zip
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_device.h')
-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;