diff options
| author | 2021-10-07 02:15:16 -0400 | |
|---|---|---|
| committer | 2021-11-16 22:11:30 +0100 | |
| commit | 89a7e566c7a101d688e96641cc2a485f2da54d4b (patch) | |
| tree | 4befc90f801f552f2efba6f477396b6f359524ce /src/video_core/vulkan_common | |
| parent | vk_texture_cache: Fix early returns on unsupported scales (diff) | |
| download | yuzu-89a7e566c7a101d688e96641cc2a485f2da54d4b.tar.gz yuzu-89a7e566c7a101d688e96641cc2a485f2da54d4b.tar.xz yuzu-89a7e566c7a101d688e96641cc2a485f2da54d4b.zip | |
vk_texture_cache: Fix unsupported blit format error checking
Diffstat (limited to 'src/video_core/vulkan_common')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.h b/src/video_core/vulkan_common/vulkan_device.h index 2d5daf6cd..10653ac6b 100644 --- a/src/video_core/vulkan_common/vulkan_device.h +++ b/src/video_core/vulkan_common/vulkan_device.h | |||
| @@ -40,6 +40,10 @@ public: | |||
| 40 | VkFormat GetSupportedFormat(VkFormat wanted_format, VkFormatFeatureFlags wanted_usage, | 40 | VkFormat GetSupportedFormat(VkFormat wanted_format, VkFormatFeatureFlags wanted_usage, |
| 41 | FormatType format_type) const; | 41 | FormatType format_type) const; |
| 42 | 42 | ||
| 43 | /// Returns true if a format is supported. | ||
| 44 | bool IsFormatSupported(VkFormat wanted_format, VkFormatFeatureFlags wanted_usage, | ||
| 45 | FormatType format_type) const; | ||
| 46 | |||
| 43 | /// Reports a device loss. | 47 | /// Reports a device loss. |
| 44 | void ReportLoss() const; | 48 | void ReportLoss() const; |
| 45 | 49 | ||
| @@ -370,10 +374,6 @@ private: | |||
| 370 | /// Returns true if the device natively supports blitting depth stencil images. | 374 | /// Returns true if the device natively supports blitting depth stencil images. |
| 371 | bool TestDepthStencilBlits() const; | 375 | bool TestDepthStencilBlits() const; |
| 372 | 376 | ||
| 373 | /// Returns true if a format is supported. | ||
| 374 | bool IsFormatSupported(VkFormat wanted_format, VkFormatFeatureFlags wanted_usage, | ||
| 375 | FormatType format_type) const; | ||
| 376 | |||
| 377 | VkInstance instance; ///< Vulkan instance. | 377 | VkInstance instance; ///< Vulkan instance. |
| 378 | vk::DeviceDispatch dld; ///< Device function pointers. | 378 | vk::DeviceDispatch dld; ///< Device function pointers. |
| 379 | vk::PhysicalDevice physical; ///< Physical device. | 379 | vk::PhysicalDevice physical; ///< Physical device. |