summaryrefslogtreecommitdiffstats
path: root/src/video_core/vulkan_common
diff options
context:
space:
mode:
authorGPUCode <geoster3d@gmail.com>2023-05-28 11:06:32 +0200
committerGPUCode <geoster3d@gmail.com>2023-07-01 15:03:29 +0200
commit95cefaf993e46414476e9d3319f6a08e0e213eac (patch)
treeb015c76b2ddd5f940070d4428b0498521f30e9ee /src/video_core/vulkan_common
parentUpdate translations (2023-07-01) (#10972) (diff)
downloadyuzu-95cefaf993e46414476e9d3319f6a08e0e213eac.tar
yuzu-95cefaf993e46414476e9d3319f6a08e0e213eac.tar.gz
yuzu-95cefaf993e46414476e9d3319f6a08e0e213eac.tar.bz2
yuzu-95cefaf993e46414476e9d3319f6a08e0e213eac.tar.lz
yuzu-95cefaf993e46414476e9d3319f6a08e0e213eac.tar.xz
yuzu-95cefaf993e46414476e9d3319f6a08e0e213eac.tar.zst
yuzu-95cefaf993e46414476e9d3319f6a08e0e213eac.zip
Diffstat (limited to 'src/video_core/vulkan_common')
-rw-r--r--src/video_core/vulkan_common/vulkan_device.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.h b/src/video_core/vulkan_common/vulkan_device.h
index 1f17265d5..3ace1fb03 100644
--- a/src/video_core/vulkan_common/vulkan_device.h
+++ b/src/video_core/vulkan_common/vulkan_device.h
@@ -77,6 +77,7 @@ VK_DEFINE_HANDLE(VmaAllocator)
EXTENSION(KHR, SPIRV_1_4, spirv_1_4) \
EXTENSION(KHR, SWAPCHAIN, swapchain) \
EXTENSION(KHR, SWAPCHAIN_MUTABLE_FORMAT, swapchain_mutable_format) \
+ EXTENSION(KHR, IMAGE_FORMAT_LIST, image_format_list) \
EXTENSION(NV, DEVICE_DIAGNOSTICS_CONFIG, device_diagnostics_config) \
EXTENSION(NV, GEOMETRY_SHADER_PASSTHROUGH, geometry_shader_passthrough) \
EXTENSION(NV, VIEWPORT_ARRAY2, viewport_array2) \
@@ -408,6 +409,11 @@ public:
return extensions.workgroup_memory_explicit_layout;
}
+ /// Returns true if the device supports VK_KHR_image_format_list.
+ bool IsKhrImageFormatListSupported() const {
+ return extensions.image_format_list || instance_version >= VK_API_VERSION_1_2;
+ }
+
/// Returns true if the device supports VK_EXT_primitive_topology_list_restart.
bool IsTopologyListPrimitiveRestartSupported() const {
return features.primitive_topology_list_restart.primitiveTopologyListRestart;