Virtual function for enabling physical device features (instead of function pointer in constructor)
This commit is contained in:
parent
d24f8ec8b7
commit
00ed23db98
5 changed files with 29 additions and 21 deletions
|
|
@ -65,14 +65,15 @@ public:
|
|||
} pipelines;
|
||||
|
||||
// Device features to be enabled for this example
|
||||
static VkPhysicalDeviceFeatures getEnabledFeatures()
|
||||
virtual VkPhysicalDeviceFeatures getEnabledFeatures()
|
||||
{
|
||||
VkPhysicalDeviceFeatures enabledFeatures = {};
|
||||
VkPhysicalDeviceFeatures enabledFeatures{};
|
||||
enabledFeatures.fillModeNonSolid = VK_TRUE;
|
||||
enabledFeatures.wideLines = VK_TRUE;
|
||||
return enabledFeatures;
|
||||
}
|
||||
|
||||
VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION, getEnabledFeatures)
|
||||
VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION)
|
||||
{
|
||||
zoom = -10.5f;
|
||||
rotation = glm::vec3(-25.0f, 15.0f, 0.0f);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue