summaryrefslogtreecommitdiffstats
path: root/src/video_core/vulkan_common/vulkan_device.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-12-22 09:19:23 +0100
committerGitHub <noreply@github.com>2021-12-22 09:19:23 +0100
commit36df305b13afc3d91bb7f9694dedab9a84a94130 (patch)
tree3e7f617dcdc5b819ab2e7da9749875f948b0d773 /src/video_core/vulkan_common/vulkan_device.h
parentMerge pull request #7602 from jbeich/freebsd-vaapi (diff)
parentVulkan: Fix the checks for primitive restart extension. (diff)
downloadyuzu-36df305b13afc3d91bb7f9694dedab9a84a94130.tar
yuzu-36df305b13afc3d91bb7f9694dedab9a84a94130.tar.gz
yuzu-36df305b13afc3d91bb7f9694dedab9a84a94130.tar.bz2
yuzu-36df305b13afc3d91bb7f9694dedab9a84a94130.tar.lz
yuzu-36df305b13afc3d91bb7f9694dedab9a84a94130.tar.xz
yuzu-36df305b13afc3d91bb7f9694dedab9a84a94130.tar.zst
yuzu-36df305b13afc3d91bb7f9694dedab9a84a94130.zip
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_device.h')
-rw-r--r--src/video_core/vulkan_common/vulkan_device.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.h b/src/video_core/vulkan_common/vulkan_device.h
index 10653ac6b..4c9d86aad 100644
--- a/src/video_core/vulkan_common/vulkan_device.h
+++ b/src/video_core/vulkan_common/vulkan_device.h
@@ -238,6 +238,16 @@ public:
return khr_workgroup_memory_explicit_layout;
}
+ /// Returns true if the device supports VK_EXT_primitive_topology_list_restart.
+ bool IsTopologyListPrimitiveRestartSupported() const {
+ return is_topology_list_restart_supported;
+ }
+
+ /// Returns true if the device supports VK_EXT_primitive_topology_list_restart.
+ bool IsPatchListPrimitiveRestartSupported() const {
+ return is_patch_list_restart_supported;
+ }
+
/// Returns true if the device supports VK_EXT_index_type_uint8.
bool IsExtIndexTypeUint8Supported() const {
return ext_index_type_uint8;
@@ -401,6 +411,9 @@ private:
bool is_shader_int16_supported{}; ///< Support for int16.
bool is_shader_storage_image_multisample{}; ///< Support for image operations on MSAA images.
bool is_blit_depth_stencil_supported{}; ///< Support for blitting from and to depth stencil.
+ bool is_topology_list_restart_supported{}; ///< Support for primitive restart with list
+ ///< topologies.
+ bool is_patch_list_restart_supported{}; ///< Support for primitive restart with list patch.
bool nv_viewport_swizzle{}; ///< Support for VK_NV_viewport_swizzle.
bool nv_viewport_array2{}; ///< Support for VK_NV_viewport_array2.
bool nv_geometry_shader_passthrough{}; ///< Support for VK_NV_geometry_shader_passthrough.