[vulkan] Enable the multiview feature

As of a recent nvidia driver update, it became necessary to enable the
feature. I guess older drivers (or vulkan validation layers?) were a bit
slack in their checking (or perhaps I didn't actually get those lighting
changes working at the time despite having committed them).
This commit is contained in:
Bill Currie 2022-07-31 17:05:41 +09:00
parent 4b38d75f2c
commit 784af2bab2
1 changed files with 5 additions and 1 deletions

View File

@ -149,12 +149,16 @@ QFV_CreateDevice (vulkan_ctx_t *ctx, const char **extensions)
VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO, 0, 0,
family, 1, &priority
};
VkPhysicalDeviceMultiviewFeatures multiview_features = {
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_FEATURES,
.multiview = 1,
};
VkPhysicalDeviceFeatures features = {
.geometryShader = 1,
.multiViewport = 1,
};
VkDeviceCreateInfo dCreateInfo = {
VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO, 0, 0,
VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO, &multiview_features, 0,
1, &qCreateInfo,
nlay, lay,
next, ext,