From 74e0ed29a55c083db127053a4c15a2d816a44c71 Mon Sep 17 00:00:00 2001 From: Tony Barbour Date: Fri, 12 Aug 2016 13:18:27 -0600 Subject: [PATCH] tests: Enable passing PhysicalDeviceFeatures to InitState Change-Id: I8eea20789594e6e0f738436e06233082efa963f9 --- tests/vkrenderframework.cpp | 4 ++-- tests/vkrenderframework.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/vkrenderframework.cpp b/tests/vkrenderframework.cpp index d4771f9..52331ff 100644 --- a/tests/vkrenderframework.cpp +++ b/tests/vkrenderframework.cpp @@ -210,10 +210,10 @@ void VkRenderFramework::ShutdownFramework() { vkDestroyInstance(this->inst, NULL); } -void VkRenderFramework::InitState() { +void VkRenderFramework::InitState(VkPhysicalDeviceFeatures *features) { VkResult U_ASSERT_ONLY err; - m_device = new VkDeviceObj(0, objs[0], device_extension_names); + m_device = new VkDeviceObj(0, objs[0], device_extension_names, features); m_device->get_device_queue(); m_depthStencil = new VkDepthStencilObj(m_device); diff --git a/tests/vkrenderframework.h b/tests/vkrenderframework.h index 9ff793b..6eb3c35 100644 --- a/tests/vkrenderframework.h +++ b/tests/vkrenderframework.h @@ -78,7 +78,7 @@ class VkRenderFramework : public VkTestFramework { void *userData = NULL); void ShutdownFramework(); - void InitState(); + void InitState(VkPhysicalDeviceFeatures *features = nullptr); const VkRenderPassBeginInfo &renderPassBeginInfo() const { return m_renderPassBeginInfo; -- 2.7.4