Skip to content
Snippets Groups Projects
Verified Commit 4e99ec85 authored by Tobias Frisch's avatar Tobias Frisch
Browse files

Reduced extra method calls

parent 53f98273
No related branches found
No related tags found
1 merge request!105Resolve "Refactor Core API"
......@@ -467,15 +467,14 @@ namespace vkcv
nullptr,
extensions.size(),
extensions.data(),
nullptr
nullptr,
&(featureManager.getFeatures())
);
#ifndef NDEBUG
deviceCreateInfo.enabledLayerCount = static_cast<uint32_t>(validationLayers.size());
deviceCreateInfo.ppEnabledLayerNames = validationLayers.data();
#endif
deviceCreateInfo.setPNext(&(featureManager.getFeatures()));
vk::Device device = physicalDevice.createDevice(deviceCreateInfo);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment