diff options
| author | 2020-02-19 12:55:56 +0700 | |
|---|---|---|
| committer | 2020-02-19 12:55:56 +0700 | |
| commit | 47106ab1520c3878e4880e87f78e668d3c5d42b6 (patch) | |
| tree | 7fcad7fc3d1cebc4c7bc6a016a0b2cf15aa854e0 | |
| parent | vk_shader: add Capability StorageImageReadWithoutFormat (diff) | |
| download | yuzu-47106ab1520c3878e4880e87f78e668d3c5d42b6.tar.gz yuzu-47106ab1520c3878e4880e87f78e668d3c5d42b6.tar.xz yuzu-47106ab1520c3878e4880e87f78e668d3c5d42b6.zip | |
vk_device: add check for shaderStorageImageReadWithoutFormat
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_device.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_device.h b/src/video_core/renderer_vulkan/vk_device.h index 72603f9f6..2c27ad730 100644 --- a/src/video_core/renderer_vulkan/vk_device.h +++ b/src/video_core/renderer_vulkan/vk_device.h | |||
| @@ -122,6 +122,11 @@ public: | |||
| 122 | return properties.limits.maxPushConstantsSize; | 122 | return properties.limits.maxPushConstantsSize; |
| 123 | } | 123 | } |
| 124 | 124 | ||
| 125 | /// Returns true if Shader storage Image Read Without Format supported. | ||
| 126 | bool IsShaderStorageImageReadWithoutFormatSupported() const { | ||
| 127 | return is_shader_storage_img_read_without_format_supported; | ||
| 128 | } | ||
| 129 | |||
| 125 | /// Returns true if ASTC is natively supported. | 130 | /// Returns true if ASTC is natively supported. |
| 126 | bool IsOptimalAstcSupported() const { | 131 | bool IsOptimalAstcSupported() const { |
| 127 | return is_optimal_astc_supported; | 132 | return is_optimal_astc_supported; |
| @@ -227,6 +232,8 @@ private: | |||
| 227 | bool ext_depth_range_unrestricted{}; ///< Support for VK_EXT_depth_range_unrestricted. | 232 | bool ext_depth_range_unrestricted{}; ///< Support for VK_EXT_depth_range_unrestricted. |
| 228 | bool ext_shader_viewport_index_layer{}; ///< Support for VK_EXT_shader_viewport_index_layer. | 233 | bool ext_shader_viewport_index_layer{}; ///< Support for VK_EXT_shader_viewport_index_layer. |
| 229 | bool nv_device_diagnostic_checkpoints{}; ///< Support for VK_NV_device_diagnostic_checkpoints. | 234 | bool nv_device_diagnostic_checkpoints{}; ///< Support for VK_NV_device_diagnostic_checkpoints. |
| 235 | bool is_shader_storage_img_read_without_format_supported{}; ///< Support for shader storage | ||
| 236 | ///< image read without format | ||
| 230 | 237 | ||
| 231 | // Telemetry parameters | 238 | // Telemetry parameters |
| 232 | std::string vendor_name; ///< Device's driver name. | 239 | std::string vendor_name; ///< Device's driver name. |