tests: Enable passing PhysicalDeviceFeatures to InitState
authorTony Barbour <tony@LunarG.com>
Fri, 12 Aug 2016 19:18:27 +0000 (13:18 -0600)
committerTony Barbour <tony@LunarG.com>
Thu, 18 Aug 2016 16:30:04 +0000 (10:30 -0600)
Change-Id: I8eea20789594e6e0f738436e06233082efa963f9

tests/vkrenderframework.cpp
tests/vkrenderframework.h

index d4771f9..52331ff 100644 (file)
@@ -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);
index 9ff793b..6eb3c35 100644 (file)
@@ -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;