mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-14 22:29:15 +01:00
[dxvk] Clean up instance creation code a bit
This commit is contained in:
parent
a1ace8ef21
commit
9ebeb8e502
@ -122,22 +122,14 @@ namespace dxvk {
|
|||||||
|
|
||||||
std::string appName = env::getExeName();
|
std::string appName = env::getExeName();
|
||||||
|
|
||||||
VkApplicationInfo appInfo;
|
VkApplicationInfo appInfo = { VK_STRUCTURE_TYPE_APPLICATION_INFO };
|
||||||
appInfo.sType = VK_STRUCTURE_TYPE_APPLICATION_INFO;
|
|
||||||
appInfo.pNext = nullptr;
|
|
||||||
appInfo.pApplicationName = appName.c_str();
|
appInfo.pApplicationName = appName.c_str();
|
||||||
appInfo.applicationVersion = 0;
|
|
||||||
appInfo.pEngineName = "DXVK";
|
appInfo.pEngineName = "DXVK";
|
||||||
appInfo.engineVersion = VK_MAKE_VERSION(1, 10, 1);
|
appInfo.engineVersion = VK_MAKE_VERSION(1, 10, 1);
|
||||||
appInfo.apiVersion = VK_MAKE_VERSION(1, 3, 0);
|
appInfo.apiVersion = VK_MAKE_VERSION(1, 3, 0);
|
||||||
|
|
||||||
VkInstanceCreateInfo info;
|
VkInstanceCreateInfo info = { VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO };
|
||||||
info.sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO;
|
|
||||||
info.pNext = nullptr;
|
|
||||||
info.flags = 0;
|
|
||||||
info.pApplicationInfo = &appInfo;
|
info.pApplicationInfo = &appInfo;
|
||||||
info.enabledLayerCount = 0;
|
|
||||||
info.ppEnabledLayerNames = nullptr;
|
|
||||||
info.enabledExtensionCount = extensionNameList.count();
|
info.enabledExtensionCount = extensionNameList.count();
|
||||||
info.ppEnabledExtensionNames = extensionNameList.names();
|
info.ppEnabledExtensionNames = extensionNameList.names();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user