[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

View file

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