From f6cc138f48c3a9524e8132f8e2954a81b1c1f5f4 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 4 Dec 2021 14:31:39 +0900 Subject: [PATCH] [vulkan] Provide access to VkPhysicalDeviceLimits Fixes the warning about parse_fixed_array not being used (oops, the problem with partial commits), but more importantly, gives access to things like maxDescriptorSetSamplers. --- libs/video/renderer/vulkan/vkparse.c | 2 ++ libs/video/renderer/vulkan/vkparse.plist | 1 + 2 files changed, 3 insertions(+) diff --git a/libs/video/renderer/vulkan/vkparse.c b/libs/video/renderer/vulkan/vkparse.c index 93c0bc6a6..0bb190b0a 100644 --- a/libs/video/renderer/vulkan/vkparse.c +++ b/libs/video/renderer/vulkan/vkparse.c @@ -1074,6 +1074,8 @@ parse_object (vulkan_ctx_t *ctx, memsuper_t *memsuper, plitem_t *plist, {"frames", &vulkan_frameset_t_type, &ctx->frames}, {"msaaSamples", &VkSampleCountFlagBits_type, &ctx->msaaSamples}, {"swapImageIndex", &cexpr_uint, &ctx->swapImageIndex}, + {"physDevLimits", &VkPhysicalDeviceLimits_type, + &ctx->device->physDev->properties.limits }, {QFV_PROPERTIES, &cexpr_plitem, &parsectx.properties}, {} }; diff --git a/libs/video/renderer/vulkan/vkparse.plist b/libs/video/renderer/vulkan/vkparse.plist index 415e31d0a..6f5efa6d3 100644 --- a/libs/video/renderer/vulkan/vkparse.plist +++ b/libs/video/renderer/vulkan/vkparse.plist @@ -25,6 +25,7 @@ VkImageViewCreateInfo, VkFramebufferCreateInfo, VkClearValue, + VkPhysicalDeviceLimits, ); parse = { VkSubpassDescription = {