diff options
author | yzct12345 <yzct12345@users.noreply.github.com> | 2022-12-13 02:52:32 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-12-13 02:53:05 +0100 |
commit | f6868ae4dd7928a251939069f9be6ff669bc391e (patch) | |
tree | b5a201c59d07251b051588a7a3e109454391d369 /src/video_core/renderer_vulkan/vk_pipeline_cache.cpp | |
parent | Merge pull request #9398 from liamwhite/fail (diff) | |
download | yuzu-f6868ae4dd7928a251939069f9be6ff669bc391e.tar yuzu-f6868ae4dd7928a251939069f9be6ff669bc391e.tar.gz yuzu-f6868ae4dd7928a251939069f9be6ff669bc391e.tar.bz2 yuzu-f6868ae4dd7928a251939069f9be6ff669bc391e.tar.lz yuzu-f6868ae4dd7928a251939069f9be6ff669bc391e.tar.xz yuzu-f6868ae4dd7928a251939069f9be6ff669bc391e.tar.zst yuzu-f6868ae4dd7928a251939069f9be6ff669bc391e.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_pipeline_cache.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_pipeline_cache.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp index 81f5f3e11..86fdde014 100644 --- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp @@ -341,6 +341,15 @@ PipelineCache::PipelineCache(RasterizerVulkan& rasterizer_, const Device& device .support_snorm_render_buffer = true, .support_viewport_index_layer = device.IsExtShaderViewportIndexLayerSupported(), }; + + if (device.GetMaxVertexInputAttributes() < Maxwell::NumVertexAttributes) { + LOG_WARNING(Render_Vulkan, "maxVertexInputAttributes is too low: {} < {}", + device.GetMaxVertexInputAttributes(), Maxwell::NumVertexAttributes); + } + if (device.GetMaxVertexInputBindings() < Maxwell::NumVertexArrays) { + LOG_WARNING(Render_Vulkan, "maxVertexInputBindings is too low: {} < {}", + device.GetMaxVertexInputBindings(), Maxwell::NumVertexArrays); + } } PipelineCache::~PipelineCache() = default; |