mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[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:
parent
4b38d75f2c
commit
784af2bab2
1 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue