[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.
This commit is contained in:
Bill Currie 2021-12-04 14:31:39 +09:00
parent cff23ac93c
commit f6cc138f48
2 changed files with 3 additions and 0 deletions

View file

@ -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},
{}
};

View file

@ -25,6 +25,7 @@
VkImageViewCreateInfo,
VkFramebufferCreateInfo,
VkClearValue,
VkPhysicalDeviceLimits,
);
parse = {
VkSubpassDescription = {