diff options
Diffstat (limited to 'src/video_core/vulkan_common')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.h | 6 |
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) | |||
| 77 | EXTENSION(KHR, SPIRV_1_4, spirv_1_4) \ | 77 | EXTENSION(KHR, SPIRV_1_4, spirv_1_4) \ |
| 78 | EXTENSION(KHR, SWAPCHAIN, swapchain) \ | 78 | EXTENSION(KHR, SWAPCHAIN, swapchain) \ |
| 79 | EXTENSION(KHR, SWAPCHAIN_MUTABLE_FORMAT, swapchain_mutable_format) \ | 79 | EXTENSION(KHR, SWAPCHAIN_MUTABLE_FORMAT, swapchain_mutable_format) \ |
| 80 | EXTENSION(KHR, IMAGE_FORMAT_LIST, image_format_list) \ | ||
| 80 | EXTENSION(NV, DEVICE_DIAGNOSTICS_CONFIG, device_diagnostics_config) \ | 81 | EXTENSION(NV, DEVICE_DIAGNOSTICS_CONFIG, device_diagnostics_config) \ |
| 81 | EXTENSION(NV, GEOMETRY_SHADER_PASSTHROUGH, geometry_shader_passthrough) \ | 82 | EXTENSION(NV, GEOMETRY_SHADER_PASSTHROUGH, geometry_shader_passthrough) \ |
| 82 | EXTENSION(NV, VIEWPORT_ARRAY2, viewport_array2) \ | 83 | EXTENSION(NV, VIEWPORT_ARRAY2, viewport_array2) \ |
| @@ -408,6 +409,11 @@ public: | |||
| 408 | return extensions.workgroup_memory_explicit_layout; | 409 | return extensions.workgroup_memory_explicit_layout; |
| 409 | } | 410 | } |
| 410 | 411 | ||
| 412 | /// Returns true if the device supports VK_KHR_image_format_list. | ||
| 413 | bool IsKhrImageFormatListSupported() const { | ||
| 414 | return extensions.image_format_list || instance_version >= VK_API_VERSION_1_2; | ||
| 415 | } | ||
| 416 | |||
| 411 | /// Returns true if the device supports VK_EXT_primitive_topology_list_restart. | 417 | /// Returns true if the device supports VK_EXT_primitive_topology_list_restart. |
| 412 | bool IsTopologyListPrimitiveRestartSupported() const { | 418 | bool IsTopologyListPrimitiveRestartSupported() const { |
| 413 | return features.primitive_topology_list_restart.primitiveTopologyListRestart; | 419 | return features.primitive_topology_list_restart.primitiveTopologyListRestart; |