diff options
| author | 2021-06-23 01:39:21 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:39 -0400 | |
| commit | fb166b5ff4b42279b2c63c69f5b5a35feafa259e (patch) | |
| tree | 16c302ad248d949b76add9a12be62fe2cbb675e0 /src/video_core/vulkan_common | |
| parent | shader: Add int64 to int32 lowering pass (diff) | |
| download | yuzu-fb166b5ff4b42279b2c63c69f5b5a35feafa259e.tar.gz yuzu-fb166b5ff4b42279b2c63c69f5b5a35feafa259e.tar.xz yuzu-fb166b5ff4b42279b2c63c69f5b5a35feafa259e.zip | |
shader: Emulate 64-bit integers when not supported
Useful for mobile and Intel Xe devices.
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 49605752d..40d00a52f 100644 --- a/src/video_core/vulkan_common/vulkan_device.h +++ b/src/video_core/vulkan_common/vulkan_device.h | |||
| @@ -164,6 +164,11 @@ public: | |||
| 164 | return is_formatless_image_load_supported; | 164 | return is_formatless_image_load_supported; |
| 165 | } | 165 | } |
| 166 | 166 | ||
| 167 | /// Returns true if shader int64 is supported. | ||
| 168 | bool IsShaderInt64Supported() const { | ||
| 169 | return is_shader_int64_supported; | ||
| 170 | } | ||
| 171 | |||
| 167 | /// Returns true if shader int16 is supported. | 172 | /// Returns true if shader int16 is supported. |
| 168 | bool IsShaderInt16Supported() const { | 173 | bool IsShaderInt16Supported() const { |
| 169 | return is_shader_int16_supported; | 174 | return is_shader_int16_supported; |