Removed function to get enabled features, features can be set directly in derived constructor due to new explicit Vulkan initialization
This commit is contained in:
parent
ca27585ee6
commit
401369f716
7 changed files with 44 additions and 47 deletions
|
|
@ -54,11 +54,6 @@ VkResult VulkanExampleBase::createInstance(bool enableValidation)
|
|||
return vkCreateInstance(&instanceCreateInfo, nullptr, &instance);
|
||||
}
|
||||
|
||||
VkPhysicalDeviceFeatures VulkanExampleBase::getEnabledFeatures()
|
||||
{
|
||||
return VkPhysicalDeviceFeatures{};
|
||||
}
|
||||
|
||||
std::string VulkanExampleBase::getWindowTitle()
|
||||
{
|
||||
std::string device(deviceProperties.deviceName);
|
||||
|
|
@ -830,7 +825,7 @@ void VulkanExampleBase::initVulkan()
|
|||
// This is handled by a separate class that gets a logical device representation
|
||||
// and encapsulates functions related to a device
|
||||
vulkanDevice = new vk::VulkanDevice(physicalDevice);
|
||||
VK_CHECK_RESULT(vulkanDevice->createLogicalDevice(getEnabledFeatures()));
|
||||
VK_CHECK_RESULT(vulkanDevice->createLogicalDevice(enabledFeatures));
|
||||
device = vulkanDevice->logicalDevice;
|
||||
|
||||
// todo: remove
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue