diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2022-12-14 15:33:10 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-14 15:33:10 -0500 |
| commit | a222f02c7aa88bfbae10075e6a19ce1fbe672815 (patch) | |
| tree | 67f7d5d94bfc66d71df7e60826a6c17ed54f9ef1 /src/video_core/vulkan_common/vulkan_device.cpp | |
| parent | a4696285af946588dc33b19e49a3baa0f8b2b60d (diff) | |
| parent | f6868ae4dd7928a251939069f9be6ff669bc391e (diff) | |
Merge pull request #6688 from yzct12345/valid-intel-max
render_vulkan: Fix validation errors on less compatible Intel GPUs
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_device.cpp')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index 6a2ad4b1d..67540cb80 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp @@ -1380,6 +1380,10 @@ void Device::SetupFeatures() { is_shader_storage_image_multisample = features.shaderStorageImageMultisample; is_blit_depth_stencil_supported = TestDepthStencilBlits(); is_optimal_astc_supported = IsOptimalAstcSupported(features); + + const VkPhysicalDeviceLimits& limits{properties.limits}; + max_vertex_input_attributes = limits.maxVertexInputAttributes; + max_vertex_input_bindings = limits.maxVertexInputBindings; } void Device::SetupProperties() { |
