diff options
| author | 2023-06-09 22:57:50 -0400 | |
|---|---|---|
| committer | 2023-06-10 12:38:49 -0400 | |
| commit | 2f1e87dd83b4ce4e6ea12f985b6da49829d821e4 (patch) | |
| tree | 85c9eaeb191ab46c2b9d8c2055c2824f4aa1ca6f /src/video_core/vulkan_common | |
| parent | Merge pull request #10614 from xcfrg/shader-backend-status-bar (diff) | |
| download | yuzu-2f1e87dd83b4ce4e6ea12f985b6da49829d821e4.tar.gz yuzu-2f1e87dd83b4ce4e6ea12f985b6da49829d821e4.tar.xz yuzu-2f1e87dd83b4ce4e6ea12f985b6da49829d821e4.zip | |
shader_recompiler: translate f64 to f32 when unsupported on host
Diffstat (limited to 'src/video_core/vulkan_common')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.h | 5 |
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: | |||
| 300 | return GetDriverID() != VK_DRIVER_ID_QUALCOMM_PROPRIETARY; | 300 | return GetDriverID() != VK_DRIVER_ID_QUALCOMM_PROPRIETARY; |
| 301 | } | 301 | } |
| 302 | 302 | ||
| 303 | /// Returns true if the device suppors float64 natively. | ||
| 304 | bool IsFloat64Supported() const { | ||
| 305 | return features.features.shaderFloat64; | ||
| 306 | } | ||
| 307 | |||
| 303 | /// Returns true if the device supports float16 natively. | 308 | /// Returns true if the device supports float16 natively. |
| 304 | bool IsFloat16Supported() const { | 309 | bool IsFloat16Supported() const { |
| 305 | return features.shader_float16_int8.shaderFloat16; | 310 | return features.shader_float16_int8.shaderFloat16; |