diff options
| author | 2022-12-06 21:43:14 -0500 | |
|---|---|---|
| committer | 2023-01-04 22:14:01 -0500 | |
| commit | 66ae79de133bfe4d6f02451136aa87aef52efc80 (patch) | |
| tree | 85347da97ffd6e114e291f2d26a273afa4451742 /src/video_core/vulkan_common | |
| parent | Merge pull request #9501 from FernandoS27/yfc-rel-2 (diff) | |
| download | yuzu-66ae79de133bfe4d6f02451136aa87aef52efc80.tar.gz yuzu-66ae79de133bfe4d6f02451136aa87aef52efc80.tar.xz yuzu-66ae79de133bfe4d6f02451136aa87aef52efc80.zip | |
renderer_vulkan: implement fallback path for null descriptors
Diffstat (limited to 'src/video_core/vulkan_common')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 3 | ||||
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.h | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index 5c5bfa18d..8e77f5aa3 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp | |||
| @@ -1487,6 +1487,9 @@ std::vector<const char*> Device::LoadExtensions(bool requires_surface) { | |||
| 1487 | 1487 | ||
| 1488 | max_push_descriptors = push_descriptor.maxPushDescriptors; | 1488 | max_push_descriptors = push_descriptor.maxPushDescriptors; |
| 1489 | } | 1489 | } |
| 1490 | |||
| 1491 | has_null_descriptor = true; | ||
| 1492 | |||
| 1490 | return extensions; | 1493 | return extensions; |
| 1491 | } | 1494 | } |
| 1492 | 1495 | ||
diff --git a/src/video_core/vulkan_common/vulkan_device.h b/src/video_core/vulkan_common/vulkan_device.h index 920a8f4e3..6042046e1 100644 --- a/src/video_core/vulkan_common/vulkan_device.h +++ b/src/video_core/vulkan_common/vulkan_device.h | |||
| @@ -397,6 +397,10 @@ public: | |||
| 397 | return must_emulate_bgr565; | 397 | return must_emulate_bgr565; |
| 398 | } | 398 | } |
| 399 | 399 | ||
| 400 | bool HasNullDescriptor() const { | ||
| 401 | return has_null_descriptor; | ||
| 402 | } | ||
| 403 | |||
| 400 | u32 GetMaxVertexInputAttributes() const { | 404 | u32 GetMaxVertexInputAttributes() const { |
| 401 | return max_vertex_input_attributes; | 405 | return max_vertex_input_attributes; |
| 402 | } | 406 | } |
| @@ -511,6 +515,7 @@ private: | |||
| 511 | bool supports_d24_depth{}; ///< Supports D24 depth buffers. | 515 | bool supports_d24_depth{}; ///< Supports D24 depth buffers. |
| 512 | bool cant_blit_msaa{}; ///< Does not support MSAA<->MSAA blitting. | 516 | bool cant_blit_msaa{}; ///< Does not support MSAA<->MSAA blitting. |
| 513 | bool must_emulate_bgr565{}; ///< Emulates BGR565 by swizzling RGB565 format. | 517 | bool must_emulate_bgr565{}; ///< Emulates BGR565 by swizzling RGB565 format. |
| 518 | bool has_null_descriptor{}; ///< Has support for null descriptors. | ||
| 514 | u32 max_vertex_input_attributes{}; ///< Max vertex input attributes in pipeline | 519 | u32 max_vertex_input_attributes{}; ///< Max vertex input attributes in pipeline |
| 515 | u32 max_vertex_input_bindings{}; ///< Max vertex input buffers in pipeline | 520 | u32 max_vertex_input_bindings{}; ///< Max vertex input buffers in pipeline |
| 516 | 521 | ||